diff options
| author | Alex Flint <[email protected]> | 2015-11-01 13:24:35 -0800 |
|---|---|---|
| committer | Alex Flint <[email protected]> | 2015-11-01 13:24:35 -0800 |
| commit | f042ab6386919a178d014ea8b3cd958e39148a7a (patch) | |
| tree | 633968b9e375c5c944bcb27f44d42373b8427af9 /parse.go | |
| parent | cd9f5188a8b221ea732e8146a5b8fc75c0498d91 (diff) | |
add .travis.yml
Diffstat (limited to 'parse.go')
| -rw-r--r-- | parse.go | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,6 @@ // Package arg parses command line arguments using the fields from a struct. -// Any exported field is interpreted as a command line option, so +// +// For example, // // var args struct { // Iter int @@ -9,7 +10,7 @@ // // defines two command line arguments, which can be set using any of // -// ./example --iter=1 --bar // bar is a boolean flag so its value is optional +// ./example --iter=1 --bar // bar is a boolean flag so its value is set to true // ./example -iter 1 // bar will default to its zero value // ./example --bar=true // foo will default to its zero value // |
