* (bug 20591) There's now a different message on Special:MovePage when
$wgFixDoubleRedirects is set to false.
* Fixed PHP warnings when updating a broken MySQL database.
+* (bug 26023) Corrected deleteBacth.php's documentation
=== API changes in 1.17 ===
* (bug 22738) Allow filtering by action type on query=logevent.
// ... and append arguments.
if ( $this->mArgList ) {
- $output .= " <";
+ $output .= ' ';
foreach ( $this->mArgList as $k => $arg ) {
- $output .= $arg['name'] . ">";
+ if ( $arg['require'] ) {
+ $output .= '<' . $arg['name'] . '>';
+ } else {
+ $output .= '[' . $arg['name'] . ']';
+ }
if ( $k < count( $this->mArgList ) - 1 )
- $output .= " <";
+ $output .= ' ';
}
}
$this->output( "$output\n\n" );
// Arguments description
foreach ( $this->mArgList as $info ) {
+ $openChar = $info['require'] ? '<' : '[';
+ $closeChar = $info['require'] ? '>' : ']';
$this->output(
- wordwrap( "$tab<" . $info['name'] . ">: " .
+ wordwrap( "$tab$openChar" . $info['name'] . "$closeChar: " .
$info['desc'], $descWidth, "\n$tab$tab" ) . "\n"
);
}
$this->addOption( 'u', "User to perform deletion", false, true );
$this->addOption( 'r', "Reason to delete page", false, true );
$this->addOption( 'i', "Interval to sleep between deletions" );
- $this->addArg( 'listfile', 'File with titles to delete, separated by newlines', false );
+ $this->addArg( 'listfile', 'File with titles to delete, separated by newlines. ' .
+ 'If not given, stdin will be used.', false );
}
public function execute() {