Skip to content

Commit

Permalink
fix: Removed extraneous - in help flag causing panic
Browse files Browse the repository at this point in the history
  • Loading branch information
Aerex committed Jun 14, 2022
1 parent 35d8705 commit 6061b25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion i18n4go/i18n4go.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ func init() {
flag.StringVar(&options.CommandFlag, "c", "", "the command, one of: extract-strings, create-translations, rewrite-package, verify-strings, merge-strings, checkup, fixup")

flag.BoolVar(&options.HelpFlag, "h", false, "prints the usage")
flag.BoolVar(&options.LongHelpFlag, "-help", false, "prints the usage")
flag.BoolVar(&options.LongHelpFlag, "help", false, "prints the usage")

flag.StringVar(&options.SourceLanguageFlag, "source-language", "en", "the source language of the file, typically also part of the file name, e.g., \"en_US\"")
flag.StringVar(&options.LanguagesFlag, "languages", "", "a comma separated list of valid languages with optional territory, e.g., \"en, en_US, fr_FR, es\"")
Expand Down

0 comments on commit 6061b25

Please sign in to comment.