From ff29948b693bb31df6eeaed7afcdbe90046256e8 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Mon, 13 Dec 2010 11:52:24 -0300 Subject: [PATCH] dsv: print usage on "dsv setup" without file name - dsv/dsv (usage): fixed typo - dsv/dsv (main): it is now an error if "dsv setup" is invoked without file name (suggested by Wolfgang Spraul) --- dsv/dsv | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dsv/dsv b/dsv/dsv index 4167720..28371b1 100755 --- a/dsv/dsv +++ b/dsv/dsv @@ -33,7 +33,7 @@ usage() echo "usage: $0 " 2>&1 echo " $0 help" 2>&1 echo " $0 [ls]" 2>&1 - echo " $0 setup .." 2>&1 + echo " $0 setup ..." 2>&1 exit 1 } @@ -164,6 +164,7 @@ case "$1" in help|-*) usage;; ""|ls) list;; setup) shift + [ "$1" ] || usage setup "$@";; *) search "$@";; esac