Change error message to be clearer when unknown option is passed. (Bug #214370)
authorfuzzyray <fuzzyray@gentoo.org>
Wed, 23 Apr 2008 20:05:07 +0000 (20:05 -0000)
committerfuzzyray <fuzzyray@gentoo.org>
Wed, 23 Apr 2008 20:05:07 +0000 (20:05 -0000)
svn path=/; revision=487

trunk/src/revdep-rebuild/revdep-rebuild

index 592b8839fac4cbe9fb7cd81ab8c2eaff7ad75a14..7df8145222d29839e877beeae6cb745e3cc98fc9 100755 (executable)
@@ -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
 }