Added --help hint to default usage message
parent
8383b65de4
commit
accda949e1
2
main.go
2
main.go
|
@ -28,7 +28,7 @@ func main() {
|
||||||
fmt.Fprintf(os.Stderr, "Could not get: %v", err)
|
fmt.Fprintf(os.Stderr, "Could not get: %v", err)
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
fmt.Printf("Usage:\n\t%v <set|get>\n", os.Args[0])
|
fmt.Printf("Usage:\n\t%v <set|get> [--help]\n", os.Args[0])
|
||||||
flag.PrintDefaults()
|
flag.PrintDefaults()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue