Argu icon indicating copy to clipboard operation
Argu copied to clipboard

feat: Positional arguments

Open agross opened this issue 8 years ago • 4 comments

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.

agross avatar Jun 27 '17 15:06 agross

I don't believe this is possible, currently.

eiriktsarpalis avatar Jun 29 '17 09:06 eiriktsarpalis

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

agross avatar Jun 29 '17 09:06 agross

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

eiriktsarpalis avatar Jun 29 '17 09:06 eiriktsarpalis

Moved my post to #130

Ciantic avatar Jul 31 '19 09:07 Ciantic