Cmd can be passthrough now, too.

Fixes #253.
This commit is contained in:
Mitar
2022-01-04 21:58:56 +01:00
committed by Alec Thomas
parent 76d5ed9ac1
commit a7d3850e80
6 changed files with 129 additions and 23 deletions
+1 -1
View File
@@ -474,7 +474,7 @@ Tag | Description
`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`.
`passthrough:""` | If present on a positional argument, it stops flag parsing when encountered, as if `--` was processed before. Useful for external command wrappers, like `exec`. On a command it requires that the command contains only one argument of type `[]string` which is then filled with everything following the command, unparsed.
`-` | Ignore the field. Useful for adding non-CLI fields to a configuration struct. e.g `` `kong:"-"` ``
## Plugins