fish: validate clone inputs

This commit is contained in:
Charles Gould 2023-03-29 10:40:36 -04:00
parent d61aa93329
commit 6cc1560a07

View File

@ -1,4 +1,9 @@
function clone --argument-names giturl
if test (count $argv) -gt 1
echo "Expected a Git URL but got "(count $argv)" arguments: '$argv'"
return 1
end
# These regular expressions are far from comprehensive, but they work for me.
#
# Examples: