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

fix: --debug is sometimes not applied #845

Open
apricote opened this issue Aug 16, 2024 · 2 comments
Open

fix: --debug is sometimes not applied #845

apricote opened this issue Aug 16, 2024 · 2 comments

Comments

@apricote
Copy link
Member

TL;DR

--debug is sometimes not applied when passed in late in the arguments.

Expected behavior

--debug should work, no matter at what position in the argument list it is being passed.

Observed behavior

On some subcommands, --debug needs to be passed early to work. I did not find a pattern to this.

  • ✔️ hcloud --debug server attach-to-network --network foo bar
  • ✔️ hcloud server --debug attach-to-network --network foo bar
  • ✔️ hcloud server attach-to-network --debug --network foo bar
  • hcloud server attach-to-network --network foo --debug bar
  • hcloud server attach-to-network --network foo bar --debug

Minimal working example

No response

Log output

No response

Additional information

$ hcloud version
hcloud 1.45.0-dev
@apricote apricote added the bug label Aug 16, 2024
@phm07 phm07 changed the title fix: --debug is sometimes not applied fix: ´--debug´ is sometimes not applied Sep 6, 2024
@phm07 phm07 changed the title fix: ´--debug´ is sometimes not applied fix: ´´--debug´´ is sometimes not applied Sep 6, 2024
@phm07 phm07 changed the title fix: ´´--debug´´ is sometimes not applied fix: --debug is sometimes not applied Sep 6, 2024
@phm07
Copy link
Contributor

phm07 commented Sep 6, 2024

I'm not sure what causes this. It might be a Cobra issue.

Copy link
Contributor

github-actions bot commented Dec 5, 2024

This issue has been marked as stale because it has not had recent activity. The bot will close the issue if no further action occurs.

@github-actions github-actions bot added the stale label Dec 5, 2024
@jooola jooola added pinned and removed stale labels Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants