Skip to content

Commit

Permalink
fix -h flag
Browse files Browse the repository at this point in the history
  • Loading branch information
cmitsakis committed Oct 15, 2021
1 parent 34325d8 commit 8bd3187
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func main() {
runtime.GOMAXPROCS(1)
var o options
o.Extensions = make(setOfStrings)
flag.BoolVar(&o.Help, "help", false, "Print usage")
flag.BoolVar(&o.Help, "h", false, "Print usage")
flag.BoolVar(&o.License, "license", false, "Licensing information")
flag.StringVar(&o.ProfilesDir, "dir", filepath.Join(os.TempDir(), appName), "Profiles' directory")
flag.BoolVar(&o.Keep, "keep", false, "Do not delete profile on exit")
Expand All @@ -65,6 +65,7 @@ func main() {
func run(o options) error {
if o.Help {
flag.PrintDefaults()
return nil
}
if o.License {
fmt.Printf("[License]\n\n%s\n\n[Third party licenses]\n\n%s\n", license, strings.Join(licenseDeps, "\n"))
Expand Down

0 comments on commit 8bd3187

Please sign in to comment.