|
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.
i.e
myProgram.out --system 0 -2 2 -3
Similar problem like in:
http://stackoverflow.com/questions/4107087/accepting-negative-doubles-with-boostprogram-options
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.
Regards
Andrzej.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk