docs: specify usage of the placeholder tag (#448)

This commit is contained in:
Jean-Raphaël Matte
2024-08-12 23:05:45 -04:00
committed by GitHub
parent d113f61e2a
commit 6292953645
+1 -1
View File
@@ -561,7 +561,7 @@ Both can coexist with standard Tag parsing.
| `name:"X"` | Long name, for overriding field name. |
| `help:"X"` | Help text. |
| `type:"X"` | Specify [named types](#custom-named-decoders) to use. |
| `placeholder:"X"` | Placeholder text. |
| `placeholder:"X"` | Placeholder input, if flag. e.g. `` `placeholder:"<the-placeholder>"` `` will show `--flag-name=<the-placeholder>` when displaying help. |
| `default:"X"` | Default value. |
| `default:"1"` | On a command, make it the default. |
| `default:"withargs"` | On a command, make it the default and allow args/flags from that command |