Boost logo

Boost Users :

From: Miro Jurisic (macdev_at_[hidden])
Date: 2005-03-04 01:48:29


In article <fd20bbcf05030321517ed55dd6_at_[hidden]>,
 The Grumpiest Man You Know <mrgrumpyguts_at_[hidden]> wrote:

> Ok the image I am in is called "foo", it accepts a set of flags and
> options. Ideally I would be able to use "-option_word" or any
> unambiguous substring there of, although I'm hoping to squeeze past
> having to use "--option_word". At some point on the command line there
> will be the name of command, pretty much the only thing I can say
> about this is that it won't start with a "-" following this will be
> zero or more arguments to the command, none of which I can parse. So
> the command line looks like:
>
> foo -foo_opt1 value -foo_flag ... command_name -cmd_option cmd_val
> -cmd_flag word ...

I think we can summarize this part as "I am trying to write xargs". Even if you
are not, what you are doing with your command line arguments is essentially the
same as what xargs does, and I think that's a legitimate need.

meeroh


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