jp@day-one.com wrote:
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?
I'm sorry for being rush, but unless you'll manage to ask questions in a polite way, your questions are likely to be purely rhetorical. - Volodya