Skip to content

removing extra screenwidth entry #358

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions cmd/sqlcmd/sqlcmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down