Boost logo

Boost :

Subject: [boost] program_options negative numbers
From: Andrzej Zielinski (072404_at_[hidden])
Date: 2011-02-03 08:31:38

I am using boost::program_options and found a problem with passing a series
of positive/negative numbers.
myProgram.out --system 0 -2 2 -3

Similar problem like in:
I do not want to disable short options. I want to make quotes working.

So when I call

myProgram.out --system '0 -2'
error: in option 'system': invalid option value

myProgram.out --system 0 -2
error: unknown option -2

What quotation do you mean ?

I am using bash, on CYGWIN and in linux

Let me know your answer.


Boost list run by bdawes at, gregod at, cpdaniel at, john at