diff options
-rw-r--r-- | bpkg/help.cxx | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/bpkg/help.cxx b/bpkg/help.cxx index e4cb963..0aad8f4 100644 --- a/bpkg/help.cxx +++ b/bpkg/help.cxx @@ -52,8 +52,20 @@ namespace bpkg void help (const help_options&, const string& t, void (*usage) (std::ostream&)) { + ostream& o (cout); + if (usage != nullptr) // Command. - usage (cout); + { + usage (o); + + o << endl + << "The common options are summarized below. For details, see the " << + "'options' help" << endl + << "topic." << endl + << endl; + + common_options::print_short_usage (o); + } else if (t.empty ()) // General help. help (); else if (t == "options") // Help topics. |