Improve positional help description.

Minor change to the positional option description in README.
This commit is contained in:
jarro2783 2022-09-26 06:59:38 +10:00 committed by GitHub
parent d046fe0ad6
commit 2123115f71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -139,10 +139,13 @@ options.add_options()
("server", "The server to execute on", cxxopts::value<std::string>())
("filenames", "The filename(s) to process", cxxopts::value<std::vector<std::string>>());
options.parse_positional({"script", "server", "filenames"})
options.parse_positional({"script", "server", "filenames"});
// Parse options the usual way
options.parse(argc, argv);
```
Then parsing a set of arguments like:
For example, parsing the following arguments:
~~~
my_script.py my_server.com file1.txt file2.txt file3.txt
~~~