In article
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