diff options
| author | Alex Flint <[email protected]> | 2020-04-17 15:52:34 -0400 |
|---|---|---|
| committer | Alex Flint <[email protected]> | 2020-04-17 15:52:34 -0400 |
| commit | 499991fce1c3415c8de772fdce6d2f24caac7d00 (patch) | |
| tree | e68112f86b6579dd2b66a17606a172200e3b0bff /README.md | |
| parent | 854aa644a6897022cab3dc5974bc19f0367f9055 (diff) | |
move some stuff around in the readme header; add sourcegraph
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 33 |
1 files changed, 24 insertions, 9 deletions
@@ -1,15 +1,24 @@ -[](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) +<h1 align="center"><br>go-arg</br></h1> +<h4 align="center">Struct-based argument parsing for Go</h4> +<p align="center"> -## Structured argument parsing for Go + <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> -```shell -go get github.com/alexflint/go-arg -``` + <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://pkg.go.dev/github.com/alexflint/go-arg/v2"><img src="https://godoc.org/github.com/alexflint/go-arg?status.svg" alt="GoDoc"></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://golangci.com/r/github.com/alexflint/go-arg)"><img src="https://golangci.com/badges/github.com/alexflint/go-arg.svg" alt="Golang CI"></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 +36,12 @@ $ ./example --foo=hello --bar hello true ``` +### Installation + +```shell +go get github.com/alexflint/go-arg +``` + ### Required arguments ```go |
