alecthomas/kong

Xor is ignored with positional arguments

开放

#255 创建于 2021年12月22日

 (5 条评论) (1 个反应) (0 位负责人)Go (182 个派生)user submission
enhancementhelp wanted

仓库指标

星标
 (3,159 个星标)
PR 合并指标
 (平均合并 11天 16小时) (30 天内合并 7 个 PR)

描述

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.

贡献者指南