Skip to content

Commit

Permalink
Docs: Mention value from env as default value
Browse files Browse the repository at this point in the history
  • Loading branch information
sj14 committed May 9, 2024
1 parent a1a099b commit 1ba9751
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/v2/examples/flags.md
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,8 @@ func main() {
}
```

When `Value` is not set for the flag, but a matching environment variable is found, the value from the environment will be used in the generated docs as the default value.

#### Values from files

You can also have the default value set from file via `FilePath`. e.g.
Expand Down

0 comments on commit 1ba9751

Please sign in to comment.