Complete command names even if ValidArgs present (#1088)
Signed-off-by: Marc Khouzam <marc.khouzam@montreal.ca>
This commit is contained in:
		@ -181,10 +181,9 @@ __%[1]s_handle_reply()
 | 
				
			|||||||
    local completions
 | 
					    local completions
 | 
				
			||||||
    completions=("${commands[@]}")
 | 
					    completions=("${commands[@]}")
 | 
				
			||||||
    if [[ ${#must_have_one_noun[@]} -ne 0 ]]; then
 | 
					    if [[ ${#must_have_one_noun[@]} -ne 0 ]]; then
 | 
				
			||||||
        completions=("${must_have_one_noun[@]}")
 | 
					        completions+=("${must_have_one_noun[@]}")
 | 
				
			||||||
    elif [[ -n "${has_completion_function}" ]]; then
 | 
					    elif [[ -n "${has_completion_function}" ]]; then
 | 
				
			||||||
        # if a go completion function is provided, defer to that function
 | 
					        # if a go completion function is provided, defer to that function
 | 
				
			||||||
        completions=()
 | 
					 | 
				
			||||||
        __%[1]s_handle_go_custom_completion
 | 
					        __%[1]s_handle_go_custom_completion
 | 
				
			||||||
    fi
 | 
					    fi
 | 
				
			||||||
    if [[ ${#must_have_one_flag[@]} -ne 0 ]]; then
 | 
					    if [[ ${#must_have_one_flag[@]} -ne 0 ]]; then
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user