program_options: commands-like style

29 May
2011
29 May
'11
6:35 p.m.
Hi, How would I implement a program options with a commands style? Something similar to git and other version control systems: ./a.out ls --pattern '[a-z][0-9]+\.txt' --count 7 Here I run a.out with command "ls". The "ls" command has a particular options description. ./a.out read --count Dracula Here I run a.out with command "read". This command also has options of its own, and just to emphasize it I show that the --count option has a different value type here. ./a.out --help Show me general help. ./a.out help ls Does the library support this style? How would I get it to work? Matan
5018
Age (days ago)
5018
Last active (days ago)
0 comments
1 participants
participants (1)
-
Matan Nassau