From 87e476cf192b70c133a1bf00efa8586348326092 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 25 Nov 2015 09:19:19 +0200 Subject: New command line help setup --- bpkg/bpkg-options.cli | 42 ++++++++++++++++++++++++++++++++---------- 1 file changed, 32 insertions(+), 10 deletions(-) (limited to 'bpkg/bpkg-options.cli') diff --git a/bpkg/bpkg-options.cli b/bpkg/bpkg-options.cli index 5da4213..b0f14e3 100644 --- a/bpkg/bpkg-options.cli +++ b/bpkg/bpkg-options.cli @@ -10,25 +10,39 @@ include ; namespace bpkg { - class bpkg_options: common_options { - bool --help; - bool --version; - }; + " ", + + "\h|SYNOPSIS| + + \cb{bpkg --help}\n + \cb{bpkg --version}\n + \c{\b{bpkg help} [|]}\n + \c{\b{bpkg} [] [] } + + \h|DESCRIPTION| + + @@ TODO + + Note that the common options can also be specified as part of the + command-specific options." + } - class bpkg_commands + class commands { + "\h|COMMANDS|" + bool help { "[]", - "Show detailed help for a command or help topic.", + "Show help for a command or help topic \- \l{bpkg-help(1)}.", "" }; bool build { "...", - "Build one or more packages.", + "Build one or more packages \- \l{bpkg-build-options(1)}.", "" }; @@ -140,11 +154,19 @@ namespace bpkg // Make sure these don't conflict with command names above. // - class bpkg_topics + class topics { - bool common + "\h|HELP TOPICS|" + + bool common-options { - "Detailed description of common options." + "Options common for all commands \- \l{bpkg-common-options(1)}." }; }; + + class options: common_options + { + bool --help; + bool --version; + }; } -- cgit v1.1