diff options
author | neodarz <neodarz@neodarz.net> | 2019-08-02 16:14:49 +0200 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2019-08-02 16:14:49 +0200 |
commit | 1b0bd479521f57311eed7edb87cdf2d3a778c59d (patch) | |
tree | c664d32f162b4186cdc14a1cb9f2aa90980618c8 | |
parent | 51b01f457351076f24e4a08bdcbfb7e4cf2d045a (diff) | |
download | umosapicpp-1b0bd479521f57311eed7edb87cdf2d3a778c59d.tar.xz umosapicpp-1b0bd479521f57311eed7edb87cdf2d3a778c59d.zip |
Specify default value help
Diffstat (limited to '')
-rw-r--r-- | umosapi.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/umosapi.cpp b/umosapi.cpp index 8b22de1..c10c79f 100644 --- a/umosapi.cpp +++ b/umosapi.cpp @@ -201,9 +201,9 @@ int main(int argc, char *argv[]) { int config_port = 9080; int thr = 2; auto cli = clara::detail::Help(showHelp) - | clara::detail::Opt( config_path, "config" )["-c"]["--config"]("Config file path. Default ") - | clara::detail::Opt( config_port, "port" )["-p"]["--port"]("Port to listen.") - | clara::detail::Opt( thr, "treads" )["-t"]["--threads"]("Number of threads."); + | clara::detail::Opt( config_path, "config" )["-c"]["--config"]("Config file path. Default `~/.config/umosapi/config.txt`.") + | clara::detail::Opt( config_port, "port" )["-p"]["--port"]("Port to listen. Default: `9080`.") + | clara::detail::Opt( thr, "treads" )["-t"]["--threads"]("Number of threads. Default: `2`."); auto result = cli.parse( clara::detail::Args( argc, argv ) ); if( !result ) { |