Show both commands and 'required flags' instead of only 'required flags'
This commit is contained in:
		@ -116,12 +116,12 @@ __handle_reply()
 | 
				
			|||||||
    fi
 | 
					    fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    local completions
 | 
					    local completions
 | 
				
			||||||
    if [[ ${#must_have_one_flag[@]} -ne 0 ]]; then
 | 
					    completions=("${commands[@]}")
 | 
				
			||||||
        completions=("${must_have_one_flag[@]}")
 | 
					    if [[ ${#must_have_one_noun[@]} -ne 0 ]]; then
 | 
				
			||||||
    elif [[ ${#must_have_one_noun[@]} -ne 0 ]]; then
 | 
					 | 
				
			||||||
        completions=("${must_have_one_noun[@]}")
 | 
					        completions=("${must_have_one_noun[@]}")
 | 
				
			||||||
    else
 | 
					    fi
 | 
				
			||||||
        completions=("${commands[@]}")
 | 
					    if [[ ${#must_have_one_flag[@]} -ne 0 ]]; then
 | 
				
			||||||
 | 
					        completions+=("${must_have_one_flag[@]}")
 | 
				
			||||||
    fi
 | 
					    fi
 | 
				
			||||||
    COMPREPLY=( $(compgen -W "${completions[*]}" -- "$cur") )
 | 
					    COMPREPLY=( $(compgen -W "${completions[*]}" -- "$cur") )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user