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

Break recursion in the help of child commands of flags grouped ones #374

Closed
wants to merge 1 commit into from

Conversation

cbosdo
Copy link
Contributor

@cbosdo cbosdo commented Jun 24, 2024

What does this PR change?

Cobra inherits the UsageFunc from the parent classes, and the implementation for the grouped flags was recursing: using the function of a blank command object rather than setting to default breaks the loop.

Links

Issue(s): #373

  • DONE

Changelogs

Make sure the changelogs entries you are adding are compliant with https://github.com/uyuni-project/uyuni/wiki/Contributing#changelogs and https://github.com/uyuni-project/uyuni/wiki/Contributing#uyuni-projectuyuni-repository

If you don't need a changelog check, please mark this checkbox:

  • No changelog needed

If you uncheck the checkbox after the PR is created, you will need to re-run changelog_test (see below)

Before you merge

Check How to branch and merge properly!

Cobra inherits the UsageFunc from the parent classes, and the
implementation for the grouped flags was recursing: using the function
of a blank command object rather than setting to default breaks the
loop.
@cbosdo cbosdo requested a review from nadvornik June 24, 2024 09:03
@cbosdo cbosdo linked an issue Jun 24, 2024 that may be closed by this pull request
@mbussolotto mbussolotto self-requested a review July 8, 2024 12:54
@cbosdo cbosdo added the SUSE Manager 5.0.1 Candidate PRs for 5.0.1 inclusion label Jul 12, 2024
@cbosdo cbosdo mentioned this pull request Jul 17, 2024
3 tasks
@cbosdo cbosdo closed this Jul 19, 2024
@cbosdo cbosdo deleted the help-loop branch July 19, 2024 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
SUSE Manager 5.0.1 Candidate PRs for 5.0.1 inclusion
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mgradm upgrade podman list --help loops for ever
3 participants