Argu
Argu copied to clipboard
feat: Positional arguments
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.
I don't believe this is possible, currently.
OK, I found we don't need it. Should I leave the issue open as a backlog item?
Sure, I can't think of a good way to encode positional arguments. Proposals/PRs are welcome.
Moved my post to #130