diff options
| author | fuzzyray <fuzzyray@gentoo.org> | 2008-04-23 20:05:07 +0000 |
|---|---|---|
| committer | fuzzyray <fuzzyray@gentoo.org> | 2008-04-23 20:05:07 +0000 |
| commit | db1d753e41713b52defac910457c41b750256ce4 (patch) | |
| tree | 9c2c3083eae3ce1519e3069cf37d5c63c450e748 | |
| parent | 865c82b18077421a485598c9a037b44ed22abe94 (diff) | |
| download | gentoolkit-db1d753e41713b52defac910457c41b750256ce4.tar.gz | |
Change error message to be clearer when unknown option is passed. (Bug #214370)
svn path=/; revision=487
| -rwxr-xr-x | trunk/src/revdep-rebuild/revdep-rebuild | 5 |
1 files changed, 4 insertions, 1 deletions
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 } |
