Open apricote opened 2 months ago
--debug is sometimes not applied when passed in late in the arguments.
--debug
--debug should work, no matter at what position in the argument list it is being passed.
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
No response
$ hcloud version hcloud 1.45.0-dev
I'm not sure what causes this. It might be a Cobra issue.
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