Handle weird args

This commit is contained in:
Mylloon 2023-10-08 19:48:57 +02:00
parent 7891a9054f
commit d50da86a43
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -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