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