Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-tools.git;a=commitdiff;h=472943c1b1d96a0bd7d15fa9d23c513aa693bbc8
commit 472943c1b1d96a0bd7d15fa9d23c513aa693bbc8 Author: Michel Hermier <herm...@frugalware.org> Date: Mon Oct 19 19:43:49 2009 +0200 repoman * Better error reporting on wrong option/command. diff --git a/repoman b/repoman index b27ae2d..9468498 100755 --- a/repoman +++ b/repoman @@ -840,7 +840,7 @@ while [ "$1" != "" ]; do dryrun=1 ;; -*) - echo "Wrong parameter!" + echo "Unkown option: $1" usage exit 1 ;; @@ -897,6 +897,11 @@ while [ "$1" != "" ]; do shift 1 sync $* ;; + *) + echo "Unkown command: $1" + usage + exit 1 + ;; esac shift 1 done _______________________________________________ Frugalware-git mailing list Frugalware-git@frugalware.org http://frugalware.org/mailman/listinfo/frugalware-git