From a8e2490b0cb873056afe10fedb795dbe0324e03a Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Tue, 29 Nov 2005 19:12:15 +0000 Subject: [PATCH] --help ftw ! --- maintenance/namespaceDupes.php | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/maintenance/namespaceDupes.php b/maintenance/namespaceDupes.php index 35d325cf61..1572be6087 100644 --- a/maintenance/namespaceDupes.php +++ b/maintenance/namespaceDupes.php @@ -17,12 +17,24 @@ # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # http://www.gnu.org/copyleft/gpl.html -$options = array( 'fix', 'suffix' ); +$options = array( 'fix', 'suffix', 'help' ); /** */ require_once( 'commandLine.inc' ); #require_once( 'maintenance/userDupes.inc' ); +if(isset( $options['help'] ) ) { +print <<] [--help] + --help : this help message + --fix : attempt to automaticly fix errors + --suffix= : dupes will be renamed with correct namespace with + appended after the article name. + +END; +die; +} + class NamespaceConflictChecker { function NamespaceConflictChecker( &$db ) { $this->db =& $db; @@ -164,4 +176,4 @@ if( $retval ) { exit( -1 ); } -?> \ No newline at end of file +?> -- 2.20.1