Boost logo

Boost Users :

From: Igor Mikushkin (igor.mikushkin_at_[hidden])
Date: 2008-02-20 07:23:46


> > 2008/2/19, Vladimir Prus <ghost_at_[hidden]>:
> >> Igor Mikushkin wrote:
> >> > For example I want command "myutil --help restrict this" to throw
> >> > an exception because of "restrict" and "this" but it doesn't do it.
> >>
> >> Why? 'restrict' appears to the value of the option --help, and this
> >> is an argument. What's wrong?
> >>
> >
> > "--help" option doesn't has any arguments in my tool.
> > Of course program_options processes all the arguments right
> > and my tool works fine. But it just ignores separate words in the command line
> > that does not started with "-" or "--". My tool does not have any commands or
> > parameters like input files, etc. I ask if I can restrict commands like
> > "myutil 1 2 3 4 5 the rabbit went out"
>
> No. Anything that is not an option is assumed to be a parameter.

OK. Thanks for the answer.

Igor


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