Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running multiple sub-commands #59

Open
srid opened this issue Jun 28, 2019 · 1 comment
Open

Running multiple sub-commands #59

srid opened this issue Jun 28, 2019 · 1 comment

Comments

@srid
Copy link

srid commented Jun 28, 2019

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 ?

@ndmitchell
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants