Support required combined with xor groups.

Fixes #112.
This commit is contained in:
Alec Thomas
2021-06-21 19:25:05 +09:30
parent 54558f65e8
commit c494f8b8f3
3 changed files with 37 additions and 2 deletions
+1 -1
View File
@@ -446,7 +446,7 @@ Tag | Description
`mapsep:"X"` | Separator for maps (defaults to ";"). May be `none` to disable splitting.
`enum:"X,Y,..."` | Set of valid values allowed for this flag.
`group:"X"` | Logical group for a flag or command.
`xor:"X,Y,..."` | Exclusive OR groups for flags. Only one flag in the group can be used which is restricted within the same command.
`xor:"X,Y,..."` | Exclusive OR groups for flags. Only one flag in the group can be used which is restricted within the same command. When combined with `required`, at least one of the `xor` group will be required.
`prefix:"X"` | Prefix for all sub-flags.
`set:"K=V"` | Set a variable for expansion by child elements. Multiples can occur.
`embed:""` | If present, this field's children will be embedded in the parent. Useful for composition.