[program_options] negative numbers in options value<vector<int> >()->multitoken()

Hi, 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-b... 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

Boost Dev, On linux version 1.34.1 gcc 4. there is no problem On cygwin version 1.43 gcc 4.3.4 there is a problem Has anything changed ? I looked at revision history and can not find anything ? Regards Andrzej On Thu, Feb 3, 2011 at 5:01 PM, Andrzej Zielinski <072404@gmail.com> wrote:
Hi,
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-b... 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
participants (1)
-
Andrzej Zielinski