-
Notifications
You must be signed in to change notification settings - Fork 69
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think part of the cobra conversion has caused |
I tried changing the test to set cmd := &cobra.Command{
Use: "testCommand",
Short: "A brief description of my command",
Long: "A long description of my command",
PreRunE: func(cmd *cobra.Command, argss []string) error {
SetScreenWidthFlag(arguments, cmd)
return arguments.Validate()
},
Run: func(cmd *cobra.Command, argss []string) {
// Command logic goes here
},
SilenceErrors: true,
SilenceUsage: true,
} but I still get this:
In reply to: 1563391313 |
oh nm this is because we're testing with -h, which will always print the help during Execute. In reply to: 1563409319 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Related issue :
#342