cmdargs icon indicating copy to clipboard operation
cmdargs copied to clipboard

Running multiple sub-commands

Open srid opened this issue 6 years ago • 1 comments
trafficstars

I'm wondering if it is possible at all to be able to run like ./myprog cmd1 cmd2 ... using this library? The modes things returns a single command, so maybe not ?

srid avatar Jun 28 '19 20:06 srid

Each invocation returns only one mode. If you just want to collect individual names, you could treat them as arguments to a single mode. If you want multiple successive modes and arguments then you'll probably have to figure out how to split the arguments and then call cmdargs multiple times.

ndmitchell avatar Jun 29 '19 10:06 ndmitchell