Skip to content

Doubled usage line #962

Closed
Closed

Description

@martymichal

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

Activity

  1. added
    1. Regression
    2. CLI
    on Dec 17, 2021
  2. added this to the Release 0.1.0 milestone on Dec 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    1. Regression2. CLI

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions