aboutsummaryrefslogtreecommitdiff
path: root/gitlike.cxx
diff options
context:
space:
mode:
authorTaylor C. Richberger <Taywee@gmx.com>2016-06-30 00:22:28 -0600
committerTaylor C. Richberger <Taywee@gmx.com>2016-06-30 00:22:28 -0600
commitddd0e82875d32e75b325b727a279d962feffce93 (patch)
treef5c80330ac446393d83d48fe5a75809810281dce /gitlike.cxx
parentBump version to 5.0.0 (diff)
downloadargs.hxx-ddd0e82875d32e75b325b727a279d962feffce93.tar.xz
add proglinepostfix to gitlike
Diffstat (limited to 'gitlike.cxx')
-rw-r--r--gitlike.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/gitlike.cxx b/gitlike.cxx
index bea4395..aa0e20e 100644
--- a/gitlike.cxx
+++ b/gitlike.cxx
@@ -22,6 +22,7 @@ int main(int argc, char **argv)
args::ArgumentParser parser("This is a git-like program", "Valid commands are init and add");
args::HelpFlag help(parser, "help", "Display this help menu", {'h', "help"});
parser.Prog(argv[0]);
+ parser.ProglinePostfix("{command options}");
args::Flag version(parser, "version", "Show the version of this program", {"version"});
args::ValueFlag<std::string> htmlpath(parser, "html-path", "Specify the html path", {"html-path"});
args::MapPositional<std::string, commandtype> command(parser, "command", "Command to execute", map);