Add envprefix tag

This commit is contained in:
Dan
2021-10-22 11:28:58 +07:00
committed by Alec Thomas
parent 749d3f0752
commit 2770a34ce6
5 changed files with 53 additions and 0 deletions
+1
View File
@@ -450,6 +450,7 @@ Tag | Description
`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. When combined with `required`, at least one of the `xor` group will be required.
`prefix:"X"` | Prefix for all sub-flags.
`envprefix:"X"` | Envar 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.
`passthrough:""` | If present, this positional argument stops flag parsing when encountered, as if `--` was processed before. Useful for external command wrappers, like `exec`.