From: fuzzyray Date: Wed, 23 Apr 2008 20:05:07 +0000 (-0000) Subject: Change error message to be clearer when unknown option is passed. (Bug #214370) X-Git-Tag: gentoolkit-0.2.4.3~26 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=db1d753e41713b52defac910457c41b750256ce4;p=gentoolkit.git Change error message to be clearer when unknown option is passed. (Bug #214370) svn path=/; revision=487 --- diff --git a/trunk/src/revdep-rebuild/revdep-rebuild b/trunk/src/revdep-rebuild/revdep-rebuild index 592b883..7df8145 100755 --- a/trunk/src/revdep-rebuild/revdep-rebuild +++ b/trunk/src/revdep-rebuild/revdep-rebuild @@ -247,13 +247,16 @@ die_if_missing_arg() { die_invalid_option() { # We cannot use eerror and einfo because this gets called before function.sh # is sourced - print_usage echo echo "Encountered unrecognized option $1." >&2 echo echo "$APP_NAME no longer automatically passes unrecognized options to portage." echo "Separate emerge-only options from revdep-rebuild options with the -- flag." echo + echo "For example, $APP_NAME -v -- --ask" + echo + echo "See the man page or $APP_NAME -h for more detail." + echo exit 1 }