| @@ 951-964 (lines=14) @@ | ||
| 948 | $this->output( "\n" ); |
|
| 949 | ||
| 950 | $scriptDependantParams = $this->mDependantParameters; |
|
| 951 | if ( count( $scriptDependantParams ) > 0 ) { |
|
| 952 | $this->output( "Script dependant parameters:\n" ); |
|
| 953 | // Parameters description |
|
| 954 | foreach ( $scriptDependantParams as $par => $info ) { |
|
| 955 | if ( $info['shortName'] !== false ) { |
|
| 956 | $par .= " (-{$info['shortName']})"; |
|
| 957 | } |
|
| 958 | $this->output( |
|
| 959 | wordwrap( "$tab--$par: " . $info['desc'], $descWidth, |
|
| 960 | "\n$tab$tab" ) . "\n" |
|
| 961 | ); |
|
| 962 | } |
|
| 963 | $this->output( "\n" ); |
|
| 964 | } |
|
| 965 | ||
| 966 | // Script specific parameters not defined on construction by |
|
| 967 | // Maintenance::addDefaultParams() |
|
| @@ 975-988 (lines=14) @@ | ||
| 972 | $this->mGenericParameters, |
|
| 973 | $this->mDependantParameters |
|
| 974 | ); |
|
| 975 | if ( count( $scriptSpecificParams ) > 0 ) { |
|
| 976 | $this->output( "Script specific parameters:\n" ); |
|
| 977 | // Parameters description |
|
| 978 | foreach ( $scriptSpecificParams as $par => $info ) { |
|
| 979 | if ( $info['shortName'] !== false ) { |
|
| 980 | $par .= " (-{$info['shortName']})"; |
|
| 981 | } |
|
| 982 | $this->output( |
|
| 983 | wordwrap( "$tab--$par: " . $info['desc'], $descWidth, |
|
| 984 | "\n$tab$tab" ) . "\n" |
|
| 985 | ); |
|
| 986 | } |
|
| 987 | $this->output( "\n" ); |
|
| 988 | } |
|
| 989 | ||
| 990 | // Print arguments |
|
| 991 | if ( count( $this->mArgList ) > 0 ) { |
|