From 7ba4647e0c80740151f1d57b95fc7cd06a97bb28 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 9 Nov 2021 13:02:51 +0200 Subject: Pass --ascii-tree CLI option when generating embedded usage and man pages --- bdep/buildfile | 4 ++-- doc/cli.sh | 4 +++- 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 () # [] { local from="$1" -- cgit v1.1