Boost logo

Boost Users :

From: Jonas Bösch (ml_at_[hidden])
Date: 2007-06-08 12:38:26


Hi,

I'm having a problem with boost::program_options. I attached a
stripped-down version of the code that demonstrates the problem. I
have a number of positional arguments ( "ops" ), and one normal
argument ( "input-file,i" ).

Now, if i run the program

./op_test pos0 pos1 pos2 -i non_positional

it interpretes the "non_positional" as further positional arg, and
not as parameter belonging to -i.

Any hints on how to solve this are greatly appreciated.

I ran it on:
Mac OS X 10.4 on a G5, with the latest XCode ( gcc 4.0.1 )
boost 1.34

Jonas





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