mirror of
https://github.com/oh-my-fish/oh-my-fish
synced 2024-11-07 15:20:22 +00:00
Merge pull request #163 from derekstavis/fix-issue-161
Fix #161 by inverting test argument order
This commit is contained in:
commit
7f390f7c91
@ -33,7 +33,7 @@ function omf -d "Oh My Fish"
|
||||
if test (count $argv) -eq 0
|
||||
omf.help "main"; and return 0
|
||||
else
|
||||
if test $argv[-1] = "--help" -a (count $argv) = 2
|
||||
if test "--help" = "$argv[-1]" -a (count $argv) = 2
|
||||
omf.help $argv[1..-2]; and return 0
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user