about summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xrdumpfs3
1 files changed, 3 insertions, 0 deletions
diff --git a/rdumpfs b/rdumpfs
index 98ccbf5..3acc606 100755
--- a/rdumpfs
+++ b/rdumpfs
@@ -18,6 +18,9 @@ fail() {
 force=false
 [[ "$1" = -f ]] && force=true && shift
 
+(( $# < 2 )) && fail "too few arguments
+Usage: rdumpfs [-f] [RSYNCOPT...] SRC [SRC...] DST"
+
 src=("${@:1:$#-1}")
 dst=${!#}