projects
/
gentoolkit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
865c82b
)
Change error message to be clearer when unknown option is passed. (Bug #214370)
author
fuzzyray
<fuzzyray@gentoo.org>
Wed, 23 Apr 2008 20:05:07 +0000
(20:05 -0000)
committer
fuzzyray
<fuzzyray@gentoo.org>
Wed, 23 Apr 2008 20:05:07 +0000
(20:05 -0000)
svn path=/; revision=487
trunk/src/revdep-rebuild/revdep-rebuild
patch
|
blob
|
history
diff --git
a/trunk/src/revdep-rebuild/revdep-rebuild
b/trunk/src/revdep-rebuild/revdep-rebuild
index 592b8839fac4cbe9fb7cd81ab8c2eaff7ad75a14..7df8145222d29839e877beeae6cb745e3cc98fc9 100755
(executable)
--- 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
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
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
}
exit 1
}