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

Order of arguments and options #9

Open
ivomarino opened this issue Apr 14, 2022 · 0 comments
Open

Order of arguments and options #9

ivomarino opened this issue Apr 14, 2022 · 0 comments

Comments

@ivomarino
Copy link

Hi there, first of all thanks for this great framework, really well done. I just have a question to an use case I have.
I created a new script, let's call it foo, where I pass arguments and options.

This works fine as expected:

➜  ./foo --myvalue=test ssh 
[   info] test
ssh

This not:

➜  ./foo ssh --myvalue=test 
[   info] false
ssh

I'd like to be able to put argument ssh both before the options and also the other way round, this probably means switching $1 with $2 when need here. Any suggestions on how this could be implemented in a clean way? Thanks;)

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

1 participant