Skip to content

Commit 17426d6

Browse files
authored
removing extra screenwidth entry (#358)
1 parent 1f617dd commit 17426d6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cmd/sqlcmd/sqlcmd.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,10 @@ func setFlags(rootCmd *cobra.Command, args *SQLCmdArguments) {
232232

233233
// Using PersistentFlags() for ErrorSeverityLevel due to data type uint8 , which is not supported in Flags()
234234
rootCmd.PersistentFlags().Uint8VarP(&args.ErrorSeverityLevel, "error-severity-level", "V", 0, "Controls the severity level that is used to set the ERRORLEVEL variable on exit.")
235-
screenWidth := rootCmd.Flags().Int("screen-width", 0, "Specifies the screen width for output")
236-
rootCmd.Flags().IntVarP(screenWidth, "w", "w", 0, "Specifies the screen width for output")
235+
236+
var screenWidth int
237+
screenWidthPtr := &screenWidth
238+
rootCmd.Flags().IntVarP(screenWidthPtr, "screen-width", "w", 0, localizer.Sprintf("Specifies the screen width for output"))
237239
}
238240

239241
func normalizeFlags(rootCmd *cobra.Command) error {

0 commit comments

Comments
 (0)