diff --git a/cmd/sqlcmd/sqlcmd.go b/cmd/sqlcmd/sqlcmd.go index 4c509948..38bd0c57 100644 --- a/cmd/sqlcmd/sqlcmd.go +++ b/cmd/sqlcmd/sqlcmd.go @@ -232,8 +232,10 @@ func setFlags(rootCmd *cobra.Command, args *SQLCmdArguments) { // Using PersistentFlags() for ErrorSeverityLevel due to data type uint8 , which is not supported in Flags() rootCmd.PersistentFlags().Uint8VarP(&args.ErrorSeverityLevel, "error-severity-level", "V", 0, "Controls the severity level that is used to set the ERRORLEVEL variable on exit.") - screenWidth := rootCmd.Flags().Int("screen-width", 0, "Specifies the screen width for output") - rootCmd.Flags().IntVarP(screenWidth, "w", "w", 0, "Specifies the screen width for output") + + var screenWidth int + screenWidthPtr := &screenWidth + rootCmd.Flags().IntVarP(screenWidthPtr, "screen-width", "w", 0, localizer.Sprintf("Specifies the screen width for output")) } func normalizeFlags(rootCmd *cobra.Command) error {