jarro2783/cxxopts

Please improve explanation of positional arguments

Opened this issue · 3 comments

The readme is very inadequate. There is a line

options.parse_positional({"script", "server", "filenames"})

which 1. does not end in a semicolon 2. does not have argc/argv unlike the regular parse call, 3. does not assign its result to anything. My best guess

auto kwresult = options.parse_positional( {"foo"} );

has "incomplete type" according to gcc.

Please clarify.

The parse_positional function sets options as being positional, it doesn't actually parse anything by itself. I will clarify the explanation and maybe change its name too.

I've updated the readme, does that help?

Much better, thanks.