-
Notifications
You must be signed in to change notification settings - Fork 46
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
[BUG] "konveyor-analyzer-dep --help" keeps running instead of showing help and stopping #439
Comments
@shawn-hurley can this be assigned to me? I want to work on it |
@Vickysomtee all yours! |
@jmle the command you provided in the second step to reproduce returns
I decided to try |
Hey @Vickysomtee, thank you for taking a look. The log messages that appear after the "Flags" section indicate that the bin is actually running a dependency analysis, and that shouldn't happen. That is what should be fixed. |
@Vickysomtee, that is correct on the command I think that you want to look at a line like this: if err := rootCmd.Execute(); err != nil { I think that if there is an error, we need to stop executing. We also need to handle the case when help is specifcally called like:} else if rootCmd.Flags().Changed("help") { Let me know if that helps? |
@shawn-hurley Thanks for the pointers, I have a better understanding. One quick question about this.
What should happen when help is specifically called |
Print the help text, and then exit would be what would be best |
@shawn-hurley I am not sure I understood what you meant by |
Fixes #439 --------- Signed-off-by: vickysomtee <vickysomtee@gmail.com>
Is there an existing issue for this?
Konveyor version
0.3.0-beta2
Priority
Minor
Current Behavior
When running
konveyor-analyzer-dep --help
, the command shows the help and keeps running instead of exiting.Expected Behavior
The command should show the help and exit.
How Reproducible
Always (Default)
Steps To Reproduce
[docker|podman] run -ti --entrypoint /bin/bash <latest analyzer-lsp image>
konveyor-analyzer-help
within the container.Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: