diff options
| author | Alex Flint <[email protected]> | 2019-10-21 23:37:12 -0700 |
|---|---|---|
| committer | Alex Flint <[email protected]> | 2019-10-21 23:37:12 -0700 |
| commit | e0fc08f7ad001371541770efcc43cf840288fee8 (patch) | |
| tree | 4f107812eb75ca8fc0c9f11ca199205b9ef31cd9 /README.md | |
| parent | 7ac060af1863205e7dfcc103b90711767e45e2a8 (diff) | |
add docs about old way of specifying defaults
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -148,6 +148,17 @@ var args struct { arg.MustParse(&args) ``` +### Default values (before v1.2) + +```go +var args struct { + Foo string + Bar bool +} +arg.Foo = "abc" +arg.MustParse(&args) +``` + ### Arguments with multiple values ```go var args struct { |
