X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=inline;f=lib%2Fperl%2FConfigure.pm;h=56a85e2fc7fd7c20fd91f461f51a2f7d313c0ce5;hb=b6013d244489aca80a904755ec2531874361185c;hp=bd1a7cc53f94ad5297beb1b9cd39c07441866d29;hpb=54d6995ab44a7122c74c195bd3fedf11c2d223da;p=moe.git diff --git a/lib/perl/Configure.pm b/lib/perl/Configure.pm index bd1a7cc..56a85e2 100644 --- a/lib/perl/Configure.pm +++ b/lib/perl/Configure.pm @@ -103,15 +103,19 @@ sub FindFile($) { sub Init($$) { my ($srcdir,$defconfig) = @_; - if ((!defined $defconfig && !@ARGV) || @ARGV && $ARGV[0] eq "--help") { - print STDERR "Usage: [/]configure " . (defined $defconfig ? "[" : "") . "" . (defined $defconfig ? "]" : "") . + sub usage($) { + my ($dc) = @_; + print STDERR "Usage: [/]configure " . (defined $dc ? "[" : "") . "" . (defined $dc ? "]" : "") . " [