|
Boost Users : |
Subject: [Boost-users] program_options: commands-like style
From: Matan Nassau (matan.nassau_at_[hidden])
Date: 2011-05-29 14:35:48
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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net