summaryrefslogtreecommitdiff
path: root/git-add.sh
diff options
context:
space:
mode:
Diffstat (limited to 'git-add.sh')
-rwxr-xr-xgit-add.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/git-add.sh b/git-add.sh
index 4bf41281d5..b5fe46aa20 100755
--- a/git-add.sh
+++ b/git-add.sh
@@ -1,5 +1,9 @@
#!/bin/sh
+usage() {
+ die "usage: git add [-n] [-v] <file>..."
+}
+
show_only=
verbose=
while : ; do
@@ -10,6 +14,9 @@ while : ; do
-v)
verbose=--verbose
;;
+ -*)
+ usage
+ ;;
*)
break
;;