aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-11-09 13:04:35 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-11-09 13:04:35 +0200
commitd8915d75e9422104e7f6c4a83f39023ab399d34b (patch)
treed6c1971da9bec9bba93994145a614b029078f28b
parent6cbbeebdc8433993fb7075006e42fa32a53a36b4 (diff)
Pass --ascii-tree CLI option when generating embedded usage and man pages
-rw-r--r--build2/buildfile2
-rwxr-xr-xdoc/cli.sh4
2 files changed, 4 insertions, 2 deletions
diff --git a/build2/buildfile b/build2/buildfile
index 4d62fb5..48f551d 100644
--- a/build2/buildfile
+++ b/build2/buildfile
@@ -84,7 +84,7 @@ if $cli.configured
# Usage options.
#
cli.options += --suppress-undocumented --long-usage --ansi-color \
---page-usage 'build2::print_$name$_' --option-length 21
+--ascii-tree --page-usage 'build2::print_$name$_' --option-length 21
cli.cxx{*}:
{
diff --git a/doc/cli.sh b/doc/cli.sh
index 9ad0881..4d9556e 100755
--- a/doc/cli.sh
+++ b/doc/cli.sh
@@ -55,7 +55,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 \
../build2/$n.cli
@@ -76,6 +76,8 @@ done
# Manuals.
#
+# @@ Note that we now have --ascii-tree CLI option.
+#
function xhtml_to_ps () # <from> <to> [<html2ps-options>]
{
local from="$1"