aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2006-05-16 11:04:34 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2006-05-16 11:04:34 +0000
commite525675a9314337390d8c11536b775ce519b64f6 (patch)
tree04971a090ec6bf87ffcd692a68fad4360d8b1991
parent5ddb42f04b963444cb626acd0a6c27180e260841 (diff)
downloadrpmdrake-e525675a9314337390d8c11536b775ce519b64f6.tar
rpmdrake-e525675a9314337390d8c11536b775ce519b64f6.tar.gz
rpmdrake-e525675a9314337390d8c11536b775ce519b64f6.tar.bz2
rpmdrake-e525675a9314337390d8c11536b775ce519b64f6.tar.xz
rpmdrake-e525675a9314337390d8c11536b775ce519b64f6.zip
fix help message which was not displaying the program name
-rwxr-xr-xrpmdrake4
1 files changed, 2 insertions, 2 deletions
diff --git a/rpmdrake b/rpmdrake
index 7a7e9e9d..3476300f 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -32,7 +32,7 @@ use URPM;
BEGIN { #- we want to run this code before the Gtk->init of the use-my_gtk
my $basename = sub { local $_ = shift; s|/*\s*$||; s|.*/||; $_ };
any { /^--?h/ } @ARGV and do {
- printf join("\n", N("Usage: %s [OPTION]..."),
+ printf join("\n", N("Usage: %s [OPTION]...", $basename->($0)),
N(" --changelog-first display changelog before filelist in the description window"),
N(" --media=medium1,.. limit to given media"),
N(" --merge-all-rpmnew propose to merge all .rpmnew/.rpmsave files found"),
@@ -46,7 +46,7 @@ N(" --pkg-sel=pkg1,.. preselect these packages"),
N(" --root force to run as root"),
N(" --search=pkg run search for \"pkg\""),
""
-), $basename->($0);
+);
exit 0;
};
}