diff --git a/docs/examples/core/ipython-completion.bash b/docs/examples/core/ipython-completion.bash index e1c63e7..58d7764 100644 --- a/docs/examples/core/ipython-completion.bash +++ b/docs/examples/core/ipython-completion.bash @@ -30,6 +30,10 @@ _ipython() [ "$cur" = "$i" ] && break if [[ ${subcommands} == *${i}* ]]; then mode="$i" + break + elif [[ ${i} == "--"* ]]; then + mode="nosubcommand" + break fi done