$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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