diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2006-05-16 11:04:34 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2006-05-16 11:04:34 +0000 |
commit | e525675a9314337390d8c11536b775ce519b64f6 (patch) | |
tree | 04971a090ec6bf87ffcd692a68fad4360d8b1991 | |
parent | 5ddb42f04b963444cb626acd0a6c27180e260841 (diff) | |
download | rpmdrake-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-x | rpmdrake | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; }; } |