Skip to content

Commit

Permalink
add: shorthand flags
Browse files Browse the repository at this point in the history
  • Loading branch information
arnold-keyvalue committed Aug 22, 2022
1 parent fa88d96 commit a6a69d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,6 @@ func Execute() {

func init() {
rootCmd.AddCommand(disconnectCmd, connectCmd)
connectCmd.PersistentFlags().String("env", "dev", "environment\nSupported environments: dev, staging, prod\n")
connectCmd.PersistentFlags().Int("port", 5432, "port")
connectCmd.PersistentFlags().StringP("env", "e", "dev", "environment\nSupported environments: dev, staging, prod\n")
connectCmd.PersistentFlags().IntP("port", "p", 5432, "port")
}

0 comments on commit a6a69d2

Please sign in to comment.