diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2004-02-04 11:56:09 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2004-02-04 11:56:09 +0000 |
commit | c8576efc256a9886d9b8b9e587dba090dce3fe53 (patch) | |
tree | 7f1501a6bfb39078b4c55bfd0745996f3f1ddba4 /gurpmi.addmedia | |
parent | ee30cb3d6aca6652b53a4bd336a4d5dc91c5ffbe (diff) | |
download | rpmdrake-c8576efc256a9886d9b8b9e587dba090dce3fe53.tar rpmdrake-c8576efc256a9886d9b8b9e587dba090dce3fe53.tar.gz rpmdrake-c8576efc256a9886d9b8b9e587dba090dce3fe53.tar.bz2 rpmdrake-c8576efc256a9886d9b8b9e587dba090dce3fe53.tar.xz rpmdrake-c8576efc256a9886d9b8b9e587dba090dce3fe53.zip |
add --help
Diffstat (limited to 'gurpmi.addmedia')
-rwxr-xr-x | gurpmi.addmedia | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gurpmi.addmedia b/gurpmi.addmedia index b478f3f6..3d82676d 100755 --- a/gurpmi.addmedia +++ b/gurpmi.addmedia @@ -25,6 +25,23 @@ use strict; use lib qw(/usr/lib/libDrakX); use common; +BEGIN { #- we want to run this code standalone.pm can output its sucking help + "@ARGV" =~ /-h/ and do { + printf "usage: gurpmi.addmedia [options] <name> <url> [with <relative_path>] +where <url> is one of + file://<path> + ftp://<login>:<password>@<host>/<path> with <relative filename of hdlist> + ftp://<host>/<path> with <relative filename of hdlist> + http://<host>/<path> with <relative filename of hdlist> + removable://<path> + +and [options] are from + --update - create an update medium. +"; + exit(0); + }; +} + require_root_capability(); use rpmdrake; |