Handle weird args
This commit is contained in:
parent
7891a9054f
commit
d50da86a43
1 changed files with 4 additions and 0 deletions
|
@ -24,6 +24,10 @@ function makeaway
|
|||
# User used "--" without target
|
||||
echo "No target found." 1>&2
|
||||
return 1
|
||||
else if test (count $argv) -ge 2 && not test "$argv[2]" = --
|
||||
# User used "--" without target
|
||||
echo "Unknown argument `$argv[2]`." 1>&2
|
||||
return 1
|
||||
end
|
||||
|
||||
# Make
|
||||
|
|
Loading…
Reference in a new issue