From 1b0bd479521f57311eed7edb87cdf2d3a778c59d Mon Sep 17 00:00:00 2001 From: neodarz Date: Fri, 2 Aug 2019 16:14:49 +0200 Subject: Specify default value help --- umosapi.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'umosapi.cpp') 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 ) { -- cgit v1.2.1