Index: trunk/phase3/maintenance/Maintenance.php |
— | — | @@ -572,22 +572,23 @@ |
573 | 573 | ksort( $this->mParams ); |
574 | 574 | if( $this->hasOption( 'help' ) || $force ) { |
575 | 575 | $this->mQuiet = false; |
| 576 | + |
576 | 577 | if( $this->mDescription ) { |
577 | 578 | $this->output( "\n" . $this->mDescription . "\n" ); |
578 | 579 | } |
579 | | - $this->output( "\nUsage: php " . $this->mSelf ); |
| 580 | + $output = "\nUsage: php " . $this->mSelf; |
580 | 581 | if( $this->mParams ) { |
581 | | - $this->output( " [--" . implode( array_keys( $this->mParams ), "|--" ) . "]" ); |
| 582 | + $output .= " [--" . implode( array_keys( $this->mParams ), "|--" ) . "]"; |
582 | 583 | } |
583 | 584 | if( $this->mArgList ) { |
584 | | - $this->output( " <" ); |
| 585 | + $output .= " <"; |
585 | 586 | foreach( $this->mArgList as $k => $arg ) { |
586 | | - $this->output( $arg['name'] . ">" ); |
| 587 | + $output .= $arg['name'] . ">"; |
587 | 588 | if( $k < count( $this->mArgList ) - 1 ) |
588 | | - $this->output( " <" ); |
| 589 | + $output .= " <"; |
589 | 590 | } |
590 | 591 | } |
591 | | - $this->output( "\n" ); |
| 592 | + $this->output( "$output\n" ); |
592 | 593 | foreach( $this->mParams as $par => $info ) { |
593 | 594 | $this->output( "\t$par : " . $info['desc'] . "\n" ); |
594 | 595 | } |