Completion should not include --help
This commit is contained in:
@@ -40,10 +40,6 @@ _omarchy_complete() {
|
|||||||
candidates+=("--all" "--json" "--markdown" "--check")
|
candidates+=("--all" "--json" "--markdown" "--check")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -x $bin_dir/$prefix || ${#candidates[@]} -gt 0 ]]; then
|
|
||||||
candidates+=("--help")
|
|
||||||
fi
|
|
||||||
|
|
||||||
if (( ${#candidates[@]} > 0 )); then
|
if (( ${#candidates[@]} > 0 )); then
|
||||||
local IFS=$'\n'
|
local IFS=$'\n'
|
||||||
COMPREPLY=($(compgen -W "${candidates[*]}" -- "$cur"))
|
COMPREPLY=($(compgen -W "${candidates[*]}" -- "$cur"))
|
||||||
|
|||||||
Reference in New Issue
Block a user