From: Tim Starling Date: Mon, 26 Nov 2007 14:28:00 +0000 (+0000) Subject: clean up --help feature X-Git-Tag: 1.31.0-rc.0~50720 X-Git-Url: https://git.cyclocoop.org/admin/%7B%7Blocalurl:Special:UserLogin%7D%7D?a=commitdiff_plain;h=9b720d93e5b54bcd462f37c51c80144f04a71369;p=lhc%2Fweb%2Fwiklou.git clean up --help feature --- diff --git a/maintenance/dumpHTML.php b/maintenance/dumpHTML.php index 26e914ff3f..b5e09f9c47 100644 --- a/maintenance/dumpHTML.php +++ b/maintenance/dumpHTML.php @@ -4,10 +4,8 @@ * @addtogroup Maintenance */ -function ShowUsage() { -echo << profile 1/N rendering operations using ProfilerSimpleUDP -END; -} +ENDS; $optionsWithArgs = array( 's', 'd', 'e', 'k', 'checkpoint', 'slice', 'udp-profile' ); $options = array( 'help' ); @@ -58,8 +55,8 @@ require_once( "dumpHTML.inc" ); error_reporting( E_ALL & (~E_NOTICE) ); if( isset( $options['help'] ) ) { - ShowUsage(); - exit(); + echo $usage; + exit; } if ( !empty( $options['s'] ) ) {