Fix cleanup flags not being read
This commit is contained in:
parent
5776784021
commit
c425b263fe
@ -876,6 +876,12 @@ func resolveFlags() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
subcommandArgs = removeFlagSet.Args()
|
subcommandArgs = removeFlagSet.Args()
|
||||||
|
} else if getCommandType() == cleanup {
|
||||||
|
err := cleanupFlagSet.Parse(subcommandArgs)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
subcommandArgs = cleanupFlagSet.Args()
|
||||||
} else if getCommandType() == file {
|
} else if getCommandType() == file {
|
||||||
err := fileFlagSet.Parse(subcommandArgs)
|
err := fileFlagSet.Parse(subcommandArgs)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user