From 8a59f55904130f9d91470f6ea4bf179c2749250c 2012-08-27 18:04:24 From: Julian Taylor Date: 2012-08-27 18:04:24 Subject: [PATCH] don't offer subcommands after a dash option --- 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