diff options
| -rw-r--r-- | .github/banner.jpg | bin | 0 -> 10082 bytes | |||
| -rw-r--r-- | README.md | 34 |
2 files changed, 22 insertions, 12 deletions
diff --git a/.github/banner.jpg b/.github/banner.jpg Binary files differnew file mode 100644 index 0000000..6fbf95c --- /dev/null +++ b/.github/banner.jpg @@ -1,15 +1,19 @@ -[](https://godoc.org/github.com/alexflint/go-arg) -[](https://github.com/alexflint/go-arg/actions) -[](https://golangci.com/r/github.com/alexflint/go-arg) --[](https://coveralls.io/github/alexflint/go-arg?branch=master) -[](https://goreportcard.com/badge/github.com/alexflint/go-arg) - - -## Structured argument parsing for Go - -```shell -go get github.com/alexflint/go-arg -``` +<h1 align="center"> + <img src="./.github/banner.jpg" alt="go-arg" height="250px"> + <br> + go-arg + </br> +</h1> +<h4 align="center">Struct-based argument parsing for Go</h4> +<p align="center"> + <a href="https://sourcegraph.com/github.com/alexflint/go-arg?badge"><img src="https://sourcegraph.com/github.com/alexflint/go-arg/-/badge.svg" alt="Sourcegraph"></a> + <a href="https://pkg.go.dev/github.com/alexflint/go-arg"><img src="https://img.shields.io/badge/go.dev-reference-007d9c?logo=go&logoColor=white&style=flat-square" alt="Documentation"></a> + <a href="https://github.com/alexflint/go-arg/actions"><img src="https://github.com/alexflint/go-arg/workflows/Go/badge.svg" alt="Build Status"></a> + <a href="https://coveralls.io/github/alexflint/go-arg?branch=master"><img src="https://coveralls.io/repos/alexflint/go-arg/badge.svg?branch=master&service=github" alt="Test Coverage"></a> + <!--<a href="https://codecov.io/gh/alexflint/go-arg"><img src="https://codecov.io/gh/alexflint/go-arg/branch/master/graph/badge.svg" alt="Coverage Status"></a>--> + <a href="https://goreportcard.com/report/github.com/alexflint/go-arg"><img src="https://goreportcard.com/badge/github.com/alexflint/go-arg" alt="Go Report Card"></a> +</p> +<br> Declare command line arguments for your program by defining a struct. @@ -27,6 +31,12 @@ $ ./example --foo=hello --bar hello true ``` +### Installation + +```shell +go get github.com/alexflint/go-arg +``` + ### Required arguments ```go |
