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

Doubled usage line #962

Closed
HarryMichal opened this issue Dec 17, 2021 · 0 comments · Fixed by #917
Closed

Doubled usage line #962

HarryMichal opened this issue Dec 17, 2021 · 0 comments · Fixed by #917
Labels
1. Regression Something worked in a previous release but does not now 2. CLI Issue is related to the command line interface
Milestone

Comments

@HarryMichal
Copy link
Member

Describe the bug
The usage output is doubled when a newer version of Cobra is used to build Toolbx.

Steps how to reproduce the behaviour

  1. Build Toolbx with latest dependencies (mainly Cobra 1.2.1)
  2. Run system tests

Expected behaviour

; toolbox --foo
Error: unknown flag: --foo
Run 'toolbox --help' for usage.

Actual behaviour

; toolbox --foo
Error: unknown flag: --foo
Run 'toolbox --help' for usage.Error: Run 'toolbox --help' for usage.

Output of toolbox --version (v0.0.90+)
toolbox version 0.0.99.3

Toolbox package info (rpm -q toolbox)
not relevant; build from source

Output of podman version
not relevant

Podman package info (rpm -q podman)
not relevant

Info about your OS
not relevant

Additional context
Connected upstream issue: spf13/cobra#1532

@HarryMichal HarryMichal added 1. Regression Something worked in a previous release but does not now 2. CLI Issue is related to the command line interface labels Dec 17, 2021
@HarryMichal HarryMichal added this to the Release 0.1.0 milestone Dec 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. Regression Something worked in a previous release but does not now 2. CLI Issue is related to the command line interface
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant