Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/orisano/usage


https://github.com/orisano/usage

cli flag golang library

Last synced: 24 days ago
JSON representation

Awesome Lists containing this project

README

        

# usage
## Installation
```
go get github.com/orisano/usage
```

## How to use
```go
package main

import (
"flag"
"fmt"

"github.com/orisano/usage"
)

func main() {
flag.Usage = usage.Ordered("n", "N")
n := flag.Int("n", 0, "number n")
N := flag.Int("N", 1, "number N")
flag.Parse()

fmt.Println(*n, *N)
}
```

## Author
Nao Yonashiro (@orisano)

## License
MIT