Skip to content

Commit

Permalink
Fix testing expecting nil instead of empty slice
Browse files Browse the repository at this point in the history
  • Loading branch information
jpcoenen committed Mar 19, 2020
1 parent 5d6b81c commit 51bade5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.go
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ func (a *Application) completionOptions(context *ParseContext) []string {

if (currArg != "" && strings.HasPrefix(currArg, "--")) || strings.HasPrefix(prevArg, "--") {
if context.argsOnly {
return []string{}
return nil
}

// Perform completion for A flag. The last/current argument started with "-"
Expand Down

0 comments on commit 51bade5

Please sign in to comment.