Skip to content

Commit

Permalink
Add help massage
Browse files Browse the repository at this point in the history
  • Loading branch information
fumiyas committed Sep 7, 2014
1 parent 112bd3c commit 33b2425
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions cmd/qrc/qrc.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,23 @@ import (
)

type cmdOptions struct {
Help bool `short:"h" long:"help" description:"show this help message and exit"`
Inverse bool `short:"i" long:"invert" description:"invert black and white"`
Help bool `short:"h" long:"help" description:"show this help message"`
Inverse bool `short:"i" long:"invert" description:"invert color"`
}

func showHelp() {
const v = `Usage: qrc [OPTIONS] [TEXT]
Options:
-h, --help
Show this help message
-i, --invert
Invert color
Text examples:
URLTO:http://www.example.jp/
MAILTO:[email protected]
WIFI:S:myssid;T:WPA;P:pass123;;
`

os.Stderr.Write([]byte(v))
Expand Down

0 comments on commit 33b2425

Please sign in to comment.