alecthomas/kong

Xor is ignored with positional arguments

Open

#255 opened on Dec 22, 2021

View on GitHub
 (5 comments) (1 reaction) (0 assignees)Go (164 forks)user submission
enhancementhelp wanted

Repository metrics

Stars
 (3,067 stars)
PR merge metrics
 (Avg merge 11d 16h) (7 merged PRs in 30d)

Description

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.

Contributor guide