|
|
|
@ -4,6 +4,10 @@ |
|
|
|
|
|
|
|
## Structured argument parsing for Go |
|
|
|
|
|
|
|
```shell |
|
|
|
go get github.com/alexflint/go-arg |
|
|
|
``` |
|
|
|
|
|
|
|
Declare the command line arguments your program accepts by defining a struct. |
|
|
|
|
|
|
|
```go |
|
|
|
@ -208,12 +212,6 @@ usage: example [--name NAME] |
|
|
|
error: error processing --name: missing period in "oops" |
|
|
|
``` |
|
|
|
|
|
|
|
### Installation |
|
|
|
|
|
|
|
```shell |
|
|
|
go get github.com/alexflint/go-arg |
|
|
|
``` |
|
|
|
|
|
|
|
### Documentation |
|
|
|
|
|
|
|
https://godoc.org/github.com/alexflint/go-arg |
|
|
|
|