Update command.go
Co-Authored-By: Sascha Grunert <sgrunert@suse.com>
This commit is contained in:
parent
bfdd794eb3
commit
3f6f97754a
@ -217,7 +217,7 @@ func (c *Command) useShortOptionHandling() bool {
|
|||||||
// reorderArgs moves all flags (via reorderedArgs) before the rest of
|
// reorderArgs moves all flags (via reorderedArgs) before the rest of
|
||||||
// the arguments (remainingArgs) as this is what flag expects.
|
// the arguments (remainingArgs) as this is what flag expects.
|
||||||
func reorderArgs(commandFlags []Flag, args []string) []string {
|
func reorderArgs(commandFlags []Flag, args []string) []string {
|
||||||
var remainingArgs []string
|
var remainingArgs, reorderedArgs []string
|
||||||
var reorderedArgs []string
|
var reorderedArgs []string
|
||||||
|
|
||||||
nextIndexMayContainValue := false
|
nextIndexMayContainValue := false
|
||||||
|
Loading…
Reference in New Issue
Block a user