pod-graceful-drain icon indicating copy to clipboard operation
pod-graceful-drain copied to clipboard

Exclude command from parsing flags

Open buildsville opened this issue 3 years ago • 1 comments

Hello. Thanks for this project! 😀

I tried to use this tool, and noticed that flags are ignored. And I found that the parsing was stopped by the command name at the beginning of the arguments.

https://pkg.go.dev/flag

Flag parsing stops just before the first non-flag argument ("-" is a non-flag argument) or after the terminator "--".

So, I propose to exclude the command name from the arguments to parse.

Thank you!

buildsville avatar Jul 26 '22 09:07 buildsville

@foriequal0 , unable to decrease deleteAfter due to this.

techmouse84 avatar Nov 02 '22 10:11 techmouse84