Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Jan 21, 2023
1 parent 560b28d commit 6aeded6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions traverse.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ loop:
case !c.DisableFlagParsing && strings.HasPrefix(arg, "-"):
logger.Printf("arg %#v is a flag\n", arg)
inFlag = &InFlag{
Flag: fs.LookupArg(arg), // TODO can be nil
Flag: fs.LookupArg(arg),
Args: []string{},
}
inArgs = append(inArgs, arg)
Expand Down Expand Up @@ -161,7 +161,7 @@ loop:
default:
logger.Printf("completing positional and subcommands for arg %#v\n", context.CallbackValue)
batch := Batch(storage.getPositional(c, len(c.Flags().Args())))
if c.HasAvailableSubCommands() && len(context.Args) <= 1 { // TODO context.Args shold be empty and check == 0
if c.HasAvailableSubCommands() && len(context.Args) <= 1 { // TODO context.Args should be empty and check == 0
batch = append(batch, actionSubcommands(c))
}
return batch.ToA(), context
Expand Down

0 comments on commit 6aeded6

Please sign in to comment.