hetznercloud / cli

A command-line interface for Hetzner Cloud
MIT License
1.08k stars 79 forks source link

fix: `--debug` is sometimes not applied #845

Open apricote opened 1 month ago

apricote commented 1 month ago

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.

Minimal working example

No response

Log output

No response

Additional information

$ hcloud version
hcloud 1.45.0-dev
phm07 commented 2 weeks ago

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