hetznercloud / cli

A command-line interface for Hetzner Cloud
MIT License
1.12k stars 80 forks source link

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

Open apricote opened 2 months ago

apricote commented 2 months 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 months ago

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