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

feat: Positional arguments #85

Open
agross opened this issue Jun 27, 2017 · 4 comments
Open

feat: Positional arguments #85

agross opened this issue Jun 27, 2017 · 4 comments

Comments

@agross
Copy link
Contributor

agross commented Jun 27, 2017

Hi,

how would one create the Argu union for:

git push -f origin master
git push origin master -f

The remote (origin) and branch (master) are positional arguments, i.e. the first and second non-option arguments on the command line.

Having two MainCommands (i.e. parameters without dashes) is not supported.

@eiriktsarpalis
Copy link
Member

I don't believe this is possible, currently.

@agross
Copy link
Contributor Author

agross commented Jun 29, 2017

OK, I found we don't need it. Should I leave the issue open as a backlog item?

@eiriktsarpalis
Copy link
Member

Sure, I can't think of a good way to encode positional arguments. Proposals/PRs are welcome.

@Ciantic
Copy link

Ciantic commented Jul 31, 2019

Moved my post to #130

@bartelink bartelink changed the title Question on defining positional arguments feat: Positional arguments Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants