summaryrefslogtreecommitdiffstats
path: root/urpmi.removemedia
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-02-01 14:02:14 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-02-01 14:02:14 +0000
commit94b05bcf8f3efd79e5a10e5fea88ef472ba3ba19 (patch)
treed16a9b61be96f1f821205cdf74675ed7a83b9fc6 /urpmi.removemedia
parent8265e240c71f71e21067bea8fd4ee3b24136ffd4 (diff)
downloadurpmi-94b05bcf8f3efd79e5a10e5fea88ef472ba3ba19.tar
urpmi-94b05bcf8f3efd79e5a10e5fea88ef472ba3ba19.tar.gz
urpmi-94b05bcf8f3efd79e5a10e5fea88ef472ba3ba19.tar.bz2
urpmi-94b05bcf8f3efd79e5a10e5fea88ef472ba3ba19.tar.xz
urpmi-94b05bcf8f3efd79e5a10e5fea88ef472ba3ba19.zip
Print usage messages to stdout, not stderr
Diffstat (limited to 'urpmi.removemedia')
-rwxr-xr-xurpmi.removemedia5
1 files changed, 4 insertions, 1 deletions
diff --git a/urpmi.removemedia b/urpmi.removemedia
index 601b60b4..5db1f006 100755
--- a/urpmi.removemedia
+++ b/urpmi.removemedia
@@ -39,7 +39,8 @@ sub main {
/^--?y$/ and $options{strict_match} = 0, next;
/^--?v$/ and $options{verbose} = 1, next;
/^--?q$/ and $options{verbose} = 0, next;
- /^-/ and die N("usage: urpmi.removemedia [-a] <name> ...
+ /^-/ and do {
+ print N("usage: urpmi.removemedia [-a] <name> ...
where <name> is a medium name to remove.
") . N(" --help - print this help message.
") . N(" -a - select all media.
@@ -48,6 +49,8 @@ where <name> is a medium name to remove.
") . N(" -q - quiet mode.
") . N(" -v - verbose mode.
") . (/^--?h(?:elp)$/ ? '' : N("\nunknown options '%s'\n", $_));
+ exit 0;
+ };
}
push @toremoves, $_;
}