diff options
author | Grissiom <chaos.proton@gmail.com> | 2010-09-18 10:18:26 +0800 |
---|---|---|
committer | Grissiom <chaos.proton@gmail.com> | 2010-09-18 10:18:26 +0800 |
commit | 70322077d21ae38bbe503d88e9e4d73ec883a493 (patch) | |
tree | d64024c9dde752818a35f865f910e413d8935579 /share/functions/__fish_contains_opt.fish | |
parent | f529b2e05725cba0bf9da3ee0feb0b7e3ef2fa5a (diff) |
remove trialing spaces #2
Diffstat (limited to 'share/functions/__fish_contains_opt.fish')
-rw-r--r-- | share/functions/__fish_contains_opt.fish | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/share/functions/__fish_contains_opt.fish b/share/functions/__fish_contains_opt.fish index f38adb40..b786fe3b 100644 --- a/share/functions/__fish_contains_opt.fish +++ b/share/functions/__fish_contains_opt.fish @@ -1,13 +1,13 @@ function __fish_contains_opt -d "Checks if a specific option has been given in the current commandline" - set -l next_short + set -l next_short set -l short_opt - set -l long_opt + set -l long_opt for i in $argv - if test $next_short - set next_short + if test $next_short + set next_short set short_opt $short_opt $i else switch $i @@ -32,7 +32,7 @@ function __fish_contains_opt -d "Checks if a specific option has been given in t if commandline -cpo | sgrep -- "^-"$i"\|^-[^-]*"$i >/dev/null return 0 end - + if commandline -ct | sgrep -- "^-"$i"\|^-[^-]*"$i >/dev/null return 0 end |