https://github.com/mashiike/didumean
go flag package wrapper, for did you mean function
https://github.com/mashiike/didumean
Last synced: 3 months ago
JSON representation
go flag package wrapper, for did you mean function
- Host: GitHub
- URL: https://github.com/mashiike/didumean
- Owner: mashiike
- License: mit
- Created: 2020-04-15T15:35:05.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2023-12-11T20:18:24.000Z (over 1 year ago)
- Last Synced: 2024-05-01T16:15:21.621Z (about 1 year ago)
- Language: Go
- Size: 27.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# didumean

[](http://godoc.org/github.com/mashiike/didumean)
[](https://goreportcard.com/report/github.com/mashiike/didumean)go flag package wrapper, for did you mean function
## Usage
see details in [godoc](http://godoc.org/github.com/mashiike/didumean)
```go
package mainimport (
"fmt"
"flag""github.com/mashiike/didumean"
)func main() {
var (
name string
)
flag.StringVar(&name, "name", "noname", "name parameter")
didumean.Parse() // replace your flag.Parse()
fmt.Println(name)
}
```example execution:
```
$ ./example -none hoge
flag provided but not defined: -none, did you mean -name
Usage of ./example:
-name string
name parameter (default "noname")
```## LICENSE
MIT