aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-11-09 13:02:51 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-11-09 13:02:51 +0200
commit7ba4647e0c80740151f1d57b95fc7cd06a97bb28 (patch)
tree610794bb1ecc81be756857b44d840b10b6c50254
parent05d51df07bdbb051de00a3e1bc8fab13c3092b11 (diff)
Pass --ascii-tree CLI option when generating embedded usage and man pages
-rw-r--r--bdep/buildfile4
-rwxr-xr-xdoc/cli.sh4
2 files changed, 5 insertions, 3 deletions
diff --git a/bdep/buildfile b/bdep/buildfile
index 6fbee61..6b5f74d 100644
--- a/bdep/buildfile
+++ b/bdep/buildfile
@@ -159,8 +159,8 @@ if $cli.configured
--generate-vector-scanner --generate-file-scanner --generate-group-scanner \
--keep-separator --generate-specifier --generate-modifier \
--generate-description --generate-parse --generate-merge \
---page-usage 'bdep::print_$name$_' --ansi-color --include-base-last \
---suppress-undocumented --option-length 24
+--page-usage 'bdep::print_$name$_' --ansi-color --ascii-tree \
+--include-base-last --suppress-undocumented --option-length 24
cli.cxx{common-options}: cli.options += --short-usage --long-usage # Both.
cli.cxx{bdep-options}: cli.options += --short-usage
diff --git a/doc/cli.sh b/doc/cli.sh
index 91e1e57..b33716d 100755
--- a/doc/cli.sh
+++ b/doc/cli.sh
@@ -63,7 +63,7 @@ function compile ()
-v date="$date" \
-v copyright="$copyright" \
--include-base-last "${o[@]}" \
---generate-man --man-suffix .1 \
+--generate-man --man-suffix .1 --ascii-tree \
--man-prologue-file man-prologue.1 \
--man-epilogue-file man-epilogue.1 \
--link-regex '%bpkg(#.+)?%$1%' \
@@ -93,6 +93,8 @@ done
#
exit 0
+# @@ Note that we now have --ascii-tree CLI option.
+#
function xhtml_to_ps () # <from> <to> [<html2ps-options>]
{
local from="$1"