Skip to content

Commit

Permalink
feat(ip): Complete help for unknown subcommands
Browse files Browse the repository at this point in the history
  • Loading branch information
yedayak authored and scop committed Apr 2, 2024
1 parent fddce99 commit 21f7e32
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions completions/ip
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ _comp_cmd_ip()
fi
;;
*)
_comp_compgen -- -W 'show'
((cword == subcword)) && _comp_compgen -- -W 'help show'
;;
esac
;;
Expand All @@ -463,10 +463,14 @@ _comp_cmd_ip()
;;
*)
((cword == subcword)) &&
_comp_compgen -- -W 'state policy monitor'
_comp_compgen -- -W 'help state policy monitor'
;;
esac
;;
help) ;;
*)
_comp_compgen -- -W 'help'
;;
esac
} &&
complete -F _comp_cmd_ip ip
Expand Down

0 comments on commit 21f7e32

Please sign in to comment.