alecthomas/kong

Xor is ignored with positional arguments

Aperta

#255 aperta il 22 dic 2021

 (5 commenti) (1 reazione) (0 assegnatari)Go (182 fork)user submission
enhancementhelp wanted

Metriche repository

Star
 (3159 stelle)
Metriche merge PR
 (Merge medio 11g 16h) (7 PR mergiate in 30 g)

Descrizione

I would like to do something like:

run --defaults

or:

run foo bar

but prevent:

run --defaults foo bar

It seems xor for positional arguments (flag with arg:"") does not do anything: there is no error if both are provided.

Guida contributor