alecthomas/kong

Xor is ignored with positional arguments

オープン

#255 opened on 2021/12/22

 (5 件のコメント) (1 件のリアクション) (0 人の担当者)Go (182 件のフォーク)user submission
enhancementhelp wanted

Repository metrics

Stars
 (3,159 個のスター)
PR merge metrics
 (平均マージ 11d 16h) (30d で 7 merged PRs)

説明

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.

コントリビューターガイド