diff options
| author | Alex Flint <[email protected]> | 2015-10-31 19:15:08 -0700 |
|---|---|---|
| committer | Alex Flint <[email protected]> | 2015-10-31 19:15:08 -0700 |
| commit | b666b30474ad3ef77ea4f22d0f88683cb7abbe5c (patch) | |
| tree | e2e1827425e0e39ab12eb619bd7f36452fa9df31 | |
| parent | 19d956870f660ed4ca00069e763c2806dade3772 (diff) | |
udpate readme
| -rw-r--r-- | README.md | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -1,9 +1,5 @@ ## Structured argument parsing for Go -```shell -go get github.com/alexflint/go-arg -``` - ```go var args struct { Foo string @@ -29,7 +25,7 @@ args.Foo = "default value" arg.MustParse(&args) ``` -### Marking options as required +### Required options ```go var args struct { @@ -100,6 +96,12 @@ fmt.Printf("Fetching the following IDs from %s: %q", args.Database, args.IDs) Fetching the following IDs from foo: [1 2 3] ``` +### Installation + +```shell +go get github.com/alexflint/go-arg +``` + ### Rationale There are many command line argument parsing libraries for Go, including one in the standard library, so why build another? |
