Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/orisano/usage
https://github.com/orisano/usage
cli flag golang library
Last synced: 24 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/orisano/usage
- Owner: orisano
- License: mit
- Created: 2018-08-30T10:34:16.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-01-08T06:15:18.000Z (almost 3 years ago)
- Last Synced: 2024-10-04T17:51:24.877Z (about 1 month ago)
- Topics: cli, flag, golang, library
- Language: Go
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# usage
## Installation
```
go get github.com/orisano/usage
```## How to use
```go
package mainimport (
"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