I'm new to using Using boost::program_options, and I'd like to parse a numeric command line argument with colon and comma notation. For example i'd like to have this kind of argument:
myprogram --numbers 1:100,200,300
Produce a vector with the integers 1-100 then 200 and finally 300.
Is there a name for this notation?
My first inclination is that I'd have to treat this argument as a string, then pass it to a function function that does the parsing. It seems like this is an excellent candidate for "somthing someone has done already and made available."