Skip to content
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

Stringified json in error message #2967

Closed
cxlucas opened this issue Apr 23, 2021 · 2 comments · Fixed by #2983 or #3037
Closed

Stringified json in error message #2967

cxlucas opened this issue Apr 23, 2021 · 2 comments · Fixed by #2983 or #3037
Assignees
Labels
bug Something isn't working
Milestone

Comments

@cxlucas
Copy link
Contributor

cxlucas commented Apr 23, 2021

Expected Behavior

Show an error message "unknown

Actual Behavior

Displays the error message "unknown flag" and a stringified json in the end of output.

save

Steps to Reproduce the Problem

  1. Open terminal.
  2. Go to kics folder.
  3. Run: 'kics --any'

Specifications

  • Version: 1.2.4
  • Platform: any
  • Subsystem: n/a
@cxlucas cxlucas added the bug Something isn't working label Apr 23, 2021
@rogeriopeixotocx rogeriopeixotocx changed the title stringified json in error message Stringified json in error message Apr 23, 2021
@felipe-avelar felipe-avelar added this to the CLI/UI milestone Apr 23, 2021
@felipe-avelar
Copy link
Contributor

@cxlucas also reproduced this problem when using unknown commands, as can be seen on following image:
MicrosoftTeams-image

@felipe-avelar
Copy link
Contributor

If a flag must have arguments, but not receives, it will reproduce the bug, e.g.: go run ./cmd/console/main.go scan -p valid_path --fail-on

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants