Commit 2123115f71f05846ec786d46ae34fc9666d2e165

Authored by jarro2783
Committed by GitHub
1 parent d046fe0a

Improve positional help description.

Minor change to the positional option description in README.
Showing 1 changed file with 5 additions and 2 deletions
README.md
... ... @@ -139,10 +139,13 @@ options.add_options()
139 139 ("server", "The server to execute on", cxxopts::value<std::string>())
140 140 ("filenames", "The filename(s) to process", cxxopts::value<std::vector<std::string>>());
141 141  
142   -options.parse_positional({"script", "server", "filenames"})
  142 +options.parse_positional({"script", "server", "filenames"});
  143 +
  144 +// Parse options the usual way
  145 +options.parse(argc, argv);
143 146 ```
144 147  
145   -Then parsing a set of arguments like:
  148 +For example, parsing the following arguments:
146 149 ~~~
147 150 my_script.py my_server.com file1.txt file2.txt file3.txt
148 151 ~~~
... ...