mirror of https://github.com/perkeep/perkeep.git
Fix camget/cammount so they accept --help
Fixes #671 Change-Id: I515f592660772f25993008071c36ed46f8a54920
This commit is contained in:
parent
9beb003f30
commit
401c44eddd
|
@ -58,6 +58,10 @@ func main() {
|
||||||
client.AddFlags()
|
client.AddFlags()
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
|
|
||||||
|
if *cmdmain.FlagHelp {
|
||||||
|
flag.PrintDefaults()
|
||||||
|
}
|
||||||
|
|
||||||
if *flagVersion {
|
if *flagVersion {
|
||||||
fmt.Fprintf(os.Stderr, "camget version: %s\n", buildinfo.Version())
|
fmt.Fprintf(os.Stderr, "camget version: %s\n", buildinfo.Version())
|
||||||
return
|
return
|
||||||
|
|
|
@ -70,6 +70,10 @@ func main() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if *cmdmain.FlagHelp {
|
||||||
|
usage()
|
||||||
|
}
|
||||||
|
|
||||||
narg := flag.NArg()
|
narg := flag.NArg()
|
||||||
if narg > 2 {
|
if narg > 2 {
|
||||||
usage()
|
usage()
|
||||||
|
|
Loading…
Reference in New Issue