Skip to content

Commit

Permalink
Fix review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Yogesh Lonkar committed Aug 5, 2019
1 parent d6523cf commit c5612e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion autocomplete/bash_autocomplete
Expand Up @@ -7,7 +7,7 @@ _cli_bash_autocomplete() {
local cur opts base
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
if [[ $cur == -* ]]; then
if [[ "$cur" == "-"* ]]; then
opts=$( ${COMP_WORDS[@]:0:$COMP_CWORD} ${cur} --generate-bash-completion )
else
opts=$( ${COMP_WORDS[@]:0:$COMP_CWORD} --generate-bash-completion )
Expand Down
2 changes: 1 addition & 1 deletion help.go
Expand Up @@ -183,7 +183,7 @@ func printCommandSuggestions(commands []Command, writer io.Writer) {

func cliArgContains(flagName string) bool {
for _, name := range strings.Split(flagName, ",") {
name = strings.Trim(name, " ")
name = strings.TrimSpace(name)
count := utf8.RuneCountInString(name)
if count > 2 {
count = 2
Expand Down

0 comments on commit c5612e8

Please sign in to comment.