diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-09-02 17:09:57 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-09-02 17:09:57 +0200 |
commit | 94c3574492b6db6ae8d5fbef717f8e6f92f1d402 (patch) | |
tree | d5cee1ec9d601fbf9da02f82b9ca8431880aea0b /bpkg/bpkg-options.cli | |
parent | 317cf86dedbd72aacc673c6257cc178e76ee77e3 (diff) |
Command line options/commands/help infrastructure
Diffstat (limited to 'bpkg/bpkg-options.cli')
-rw-r--r-- | bpkg/bpkg-options.cli | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/bpkg/bpkg-options.cli b/bpkg/bpkg-options.cli new file mode 100644 index 0000000..46cd4eb --- /dev/null +++ b/bpkg/bpkg-options.cli @@ -0,0 +1,41 @@ +// file : bpkg/bpkg-options.cli +// copyright : Copyright (c) 2014-2015 Code Synthesis Ltd +// license : MIT; see accompanying LICENSE file + +include <bpkg/common-options.cli>; + +namespace bpkg +{ + class bpkg_options: common_options + { + bool --help; + bool --version; + }; + + class bpkg_commands + { + bool help + { + "[<topic>]", + "Show detailed help for a command or help topic.", + "" + }; + + bool rep-create + { + "[-d <dir>]", + "Create repository manifest file.", + "" + }; + }; + + // Make sure these don't conflict with command names above. + // + class bpkg_topics + { + bool options + { + "Detailed description of common options." + }; + }; +} |