Skip to content

Commit e99f1db

Browse files
fix panic caused by invalid shorthand for --no-remote flag (sqlc-dev#2218)
1 parent 3872990 commit e99f1db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/cmd/cmd.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func Do(args []string, stdin io.Reader, stdout io.Writer, stderr io.Writer) int
3333
rootCmd := &cobra.Command{Use: "sqlc", SilenceUsage: true}
3434
rootCmd.PersistentFlags().StringP("file", "f", "", "specify an alternate config file (default: sqlc.yaml)")
3535
rootCmd.PersistentFlags().BoolP("experimental", "x", false, "DEPRECATED: enable experimental features (default: false)")
36-
rootCmd.PersistentFlags().BoolP("no-remote", "nr", false, "disable remote execution (default: false)")
36+
rootCmd.PersistentFlags().Bool("no-remote", false, "disable remote execution (default: false)")
3737

3838
rootCmd.AddCommand(checkCmd)
3939
rootCmd.AddCommand(diffCmd)

0 commit comments

Comments
 (0)