From ae2acaa4d236c6b1cb9a5d8346316cd8af0c9210 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 9 Nov 2021 13:04:10 +0200 Subject: Pass --ascii-tree CLI option when generating embedded usage and man pages --- bpkg/buildfile | 4 ++-- doc/cli.sh | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/bpkg/buildfile b/bpkg/buildfile index 1173977..6ef5ef4 100644 --- a/bpkg/buildfile +++ b/bpkg/buildfile @@ -180,8 +180,8 @@ if $cli.configured --cxx-prologue "#include " --cli-namespace bpkg::cli \ --generate-vector-scanner --generate-file-scanner --generate-group-scanner \ --keep-separator --generate-specifier --generate-parse --generate-merge \ ---page-usage 'bpkg::print_$name$_' --ansi-color --include-base-last \ ---option-length 24 +--page-usage 'bpkg::print_$name$_' --ansi-color --ascii-tree \ +--include-base-last --option-length 24 # Both --*-usage options. # diff --git a/doc/cli.sh b/doc/cli.sh index efe6597..1bcfa96 100755 --- a/doc/cli.sh +++ b/doc/cli.sh @@ -58,7 +58,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 '%b(#.+)?%$1%' \ @@ -90,6 +90,9 @@ done # Manual. # + +# @@ Note that we now have --ascii-tree CLI option. +# function xhtml_to_ps () # [] { local from="$1" -- cgit v1.1