@@ 1002-1015 (lines=14) @@ | ||
999 | $this->output( "\n" ); |
|
1000 | ||
1001 | $scriptDependantParams = $this->mDependantParameters; |
|
1002 | if ( count( $scriptDependantParams ) > 0 ) { |
|
1003 | $this->output( "Script dependant parameters:\n" ); |
|
1004 | // Parameters description |
|
1005 | foreach ( $scriptDependantParams as $par => $info ) { |
|
1006 | if ( $info['shortName'] !== false ) { |
|
1007 | $par .= " (-{$info['shortName']})"; |
|
1008 | } |
|
1009 | $this->output( |
|
1010 | wordwrap( "$tab--$par: " . $info['desc'], $descWidth, |
|
1011 | "\n$tab$tab" ) . "\n" |
|
1012 | ); |
|
1013 | } |
|
1014 | $this->output( "\n" ); |
|
1015 | } |
|
1016 | ||
1017 | // Script specific parameters not defined on construction by |
|
1018 | // Maintenance::addDefaultParams() |
|
@@ 1026-1039 (lines=14) @@ | ||
1023 | $this->mGenericParameters, |
|
1024 | $this->mDependantParameters |
|
1025 | ); |
|
1026 | if ( count( $scriptSpecificParams ) > 0 ) { |
|
1027 | $this->output( "Script specific parameters:\n" ); |
|
1028 | // Parameters description |
|
1029 | foreach ( $scriptSpecificParams as $par => $info ) { |
|
1030 | if ( $info['shortName'] !== false ) { |
|
1031 | $par .= " (-{$info['shortName']})"; |
|
1032 | } |
|
1033 | $this->output( |
|
1034 | wordwrap( "$tab--$par: " . $info['desc'], $descWidth, |
|
1035 | "\n$tab$tab" ) . "\n" |
|
1036 | ); |
|
1037 | } |
|
1038 | $this->output( "\n" ); |
|
1039 | } |
|
1040 | ||
1041 | // Print arguments |
|
1042 | if ( count( $this->mArgList ) > 0 ) { |