Skip to content

Commit

Permalink
Add shorthand for config flag
Browse files Browse the repository at this point in the history
  • Loading branch information
ollien committed Aug 12, 2017
1 parent 8ab10c7 commit 6e31a0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func CreateOrUpdateRecord(config *Config, domainService godo.DomainsService) (DN
}

func main() {
configPath := pflag.String("config", defaultConfigPath, "Set a path to a config.json")
configPath := pflag.StringP("config", "c", defaultConfigPath, "Set a path to a config.json")
silent := pflag.Bool("silent", false, "Disable all output to stdout")
pflag.Parse()

Expand Down

0 comments on commit 6e31a0d

Please sign in to comment.