fix bug in abbr function

I introduced a bug in the `abbr` function with commit 17dff8c by
referencing the undefined `$cmd` variable. This fixes that.
This commit is contained in:
Kurtis Rader 2017-08-03 23:52:07 -07:00
parent 26472593aa
commit d4fb75e9f3

View file

@ -3,7 +3,7 @@ function abbr --description "Manage abbreviations using new fish 3.0 scheme."
set options $options 'h/help' 'a/add' 'r/rename' 'e/erase' 'l/list' 's/show'
set options $options 'g/global' 'U/universal'
argparse -n $cmd $options -- $argv
argparse -n abbr $options -- $argv
or return
if set -q _flag_help