Xor is ignored with positional arguments
Author: mitarCreated Dec 22, 2021Updated Sep 19, 2025
Labelsenhancementhelp wanted
I would like to do something like:
run --defaultsor:
run foo barbut prevent:
run --defaults foo barIt seems xor for positional arguments (flag with arg:"") does not do anything: there is no error if both are provided.
Source: alecthomas/kong