Skip to content

Commit

Permalink
Document default and nodefault field tags
Browse files Browse the repository at this point in the history
  • Loading branch information
isobit committed Sep 12, 2024
1 parent 67fa716 commit e4962f9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ struct Example {
| `name` | Yes | Explicit flag name (by default names are derived from the struct field name) |
| `short` | Yes | Single character short name alias |
| `env` | Yes | Environment variable to use as a default value |
| `default` | Yes | Custom default string in help text (does not affect actual default value) |
| `nodefault` | No | Don't show default value in help text |
| `hidden` | No | Don't show field in help text |
| `append` | No | Change flag setting behavior to append to value when specified multiple times (must be a slice type) |
| `args` | No | Set this field to the remaining non-flag args instead of recursively parsing them as subcommands. |
Expand Down

0 comments on commit e4962f9

Please sign in to comment.