aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-01-11 15:40:41 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-01-11 15:40:41 +0200
commit043a8fdc4c10b68945804ae57c13a40932046843 (patch)
tree3247361da58198b0363dd99d7ca4858f32759710
parent1c13ae4ed5d84b32c2c1a0698f9e688c312de989 (diff)
Massage cli options to do right thing
-rw-r--r--bpkg/buildfile8
1 files changed, 5 insertions, 3 deletions
diff --git a/bpkg/buildfile b/bpkg/buildfile
index 9f4d904..52d4520 100644
--- a/bpkg/buildfile
+++ b/bpkg/buildfile
@@ -102,10 +102,12 @@ cli.options += -I $src_root --include-with-brackets --include-prefix bpkg \
--guard-prefix BPKG --cxx-prologue "#include <bpkg/types-parsers>" \
--cli-namespace bpkg::cli --generate-file-scanner --generate-specifier \
--generate-parse --ansi-color --page-usage 'bpkg::print_$name$_' \
---include-base-last --long-usage --option-length 23
+--include-base-last --option-length 23
-cli.cxx{common-options}: cli.options += --short-usage # Both short and long.
-cli.cxx{bpkg-options}: cli.options += --suppress-undocumented # --help, etc.
+cli.cxx{common-options}: cli.options += --short-usage --long-usage # Both.
+cli.cxx{bpkg-options}: cli.options += --short-usage --suppress-undocumented
+
+cli.options += --long-usage # All other pages -- long usage.
# Include generated cli files into the distribution.
#