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 · 1 comment
Open

fix: --debug is sometimes not applied #845

apricote opened this issue Aug 16, 2024 · 1 comment
Labels

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants