aboutsummaryrefslogtreecommitdiffstats
path: root/src/_cpack
diff options
context:
space:
mode:
Diffstat (limited to 'src/_cpack')
-rw-r--r--src/_cpack4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/_cpack b/src/_cpack
index 6619e18..8e73116 100644
--- a/src/_cpack
+++ b/src/_cpack
@@ -40,7 +40,7 @@ _cpack() {
_arguments \
'-G[Override/define CPACK_GENERATOR]:generator:_cpack_generators' \
'-C[Specify the project configurations]:configuration:(Debug Release)' \
- *'-D[Set a CPack variable]:var_val' \
+ '*-D[Set a CPack variable]:var_val' \
'--config[Specify the config file]:file:_files' \
'(-V --verbose)'{-V,--verbose}'[Enable verbose output]' \
'--trace[Put underlying cmake scripts in trace mode]' \
@@ -116,7 +116,7 @@ _cpack_generators() {
}
_cpack_help_manuals() {
- local -a manuals=(${(f)"$(cpack --help-manual-list 2>/dev/null | sed 's/([0-9]\+)$//' )"})
+ local -a manuals=(${(f)"$(cpack --help-manual-list 2>/dev/null | sed 's/([0-9][0-9]*)$//' )"})
_values 'manual' $manuals
}