From db1d753e41713b52defac910457c41b750256ce4 Mon Sep 17 00:00:00 2001 From: fuzzyray Date: Wed, 23 Apr 2008 20:05:07 +0000 Subject: [PATCH] Change error message to be clearer when unknown option is passed. (Bug #214370) svn path=/; revision=487 --- trunk/src/revdep-rebuild/revdep-rebuild | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 } -- 2.26.2