diff --git a/ext/tinyopt/README.md b/ext/tinyopt/README.md index cee0531a985aeb1070ff9258b9a396f876588777..a4ee15dbb42ba86feed20e378e2ef8388fa4dc2b 100644 --- a/ext/tinyopt/README.md +++ b/ext/tinyopt/README.md @@ -64,9 +64,9 @@ int main(int argc, char** argv) { for (auto arg = argv+1; *arg; ) { bool ok = - help << to::parse(arg, 'h', "help") || - n << to::parse<int>(arg, 'n', "number") || - fn << to::parse<int>(arg, to::keywords(functions), 'f', "function"); + help << to::parse(arg, "-h", "--help") || + n << to::parse<int>(arg, "-n", "--number") || + fn << to::parse<int>(arg, to::keywords(functions), "-f", "--function"); if (!ok) throw to::option_error("unrecognized argument", *arg); }