From 1577a283c7a756da24c619c7d2977aa0334255dc Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Fri, 30 Sep 2005 12:26:02 +0000 Subject: Don't give two meanings to -h --- dumpdistribconf | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dumpdistribconf b/dumpdistribconf index fcb6e57..4cf570f 100755 --- a/dumpdistribconf +++ b/dumpdistribconf @@ -14,7 +14,7 @@ sub usage () { my ($out, $outputtype) = (\*STDOUT, 'm'); GetOptions( - h => sub { $outputtype = 'h' }, + s => sub { $outputtype = 's' }, m => sub { $outputtype = 'm' }, d => sub { undef $out }, 'v|version' => sub { warn "$0 version $VERSION\n"; exit 0 }, @@ -30,7 +30,7 @@ foreach (@ARGV) { warn "Can't load configuration from $_\n"; next; }; - if ($outputtype eq 'h') { + if ($outputtype eq 's') { $d->write_hdlists($out) or warn "Can't write hdlists file\n"; } else { $d->write_mediacfg($out) or warn "Can't write media.cfg file\n"; @@ -45,11 +45,11 @@ dumpdistribconf - dumps a media.cfg from a distribution tree =head1 SYNOPSIS - dumpdistribconf [-h|-m] [-d] path [path...] + dumpdistribconf [-s|-m] [-d] path [path...] =head1 DESCRIPTION -This will dump a F (or an F file if B<-h> is +This will dump a F (or an F file if B<-s> is specified) from a Mandriva Linux distribution tree. By default it's dumped to the standard output. @@ -57,7 +57,7 @@ it's dumped to the standard output. =over 4 -=item B<-h> +=item B<-s> Dump an F file. -- cgit v1.2.1