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

Allow for multiple --command flags #354

Open
goerz opened this issue Oct 18, 2019 · 1 comment
Open

Allow for multiple --command flags #354

goerz opened this issue Oct 18, 2019 · 1 comment

Comments

@goerz
Copy link

goerz commented Oct 18, 2019

It seems like if I give the --command flag multiple times, only the last command will be executed. I would expect each --command to be run, in the order it was specified.

I can work around this with --command="cmd1 && cmd2 && cmd3", but it would be nicer to have this as --command=cmd1 --command=cmd2 --command=cmd3 (or else, show an error if --command is given multiple times).

@asmeurer
Copy link
Member

I think the current behavior is just the default argparse behavior where passing a flag multiple times just overrides the previous times. Allowing it to be passed multiple times sounds good to me.

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