From c8576efc256a9886d9b8b9e587dba090dce3fe53 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Wed, 4 Feb 2004 11:56:09 +0000 Subject: add --help --- gurpmi.addmedia | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'gurpmi.addmedia') 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] [with ] +where is one of + file:// + ftp://:@/ with + ftp:/// with + http:/// with + removable:// + +and [options] are from + --update - create an update medium. +"; + exit(0); + }; +} + require_root_capability(); use rpmdrake; -- cgit v1.2.1