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

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

Awesome Lists containing this project

README

        

# didumean

![ci](https://github.com/mashiike/didumean/workflows/Test/badge.svg)
[![Documentation](https://godoc.org/github.com/mashiike/didumean?status.svg)](http://godoc.org/github.com/mashiike/didumean)
[![Go Report Card](https://goreportcard.com/badge/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 main

import (
"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