Boost logo

Boost Users :

From: jp_at_[hidden]
Date: 2007-06-06 02:05:18


hi,

i hate rewriting getopts, but avaliable implimentations are always
horrible, so there i was. then i decided to use boost::program_options
....

all i want to do is something like..:

translate --seq1 10 --seq2 10 13 --filter *.cpp *.hpp *.h

where seq1 and seq2 can take any number of numbers between 0 and 255

anyway, if i use anything like

desc.add_options
    ("seq1", po::value< std::vector<byte> >() -> multitoken() ->
composing() -> notifier(seq1()), "byte sequence to find")

it just returns all the tokens following the first option. is the library
too stupid to stop eating tokens when it comes to another option? if so,
what is its point?

please...
jono


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