瀏覽代碼

improved cleanflaglist script

bach 1 年之前
父節點
當前提交
17b6581aa6
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      cleanflaglist.script

+ 4 - 1
cleanflaglist.script

@@ -4,6 +4,9 @@
 // This example demonstrates how to write a drush
 // script.  These scripts are run with the php-script command.
 //
+
+// drush php-script cleanflaglist.script
+
 use Drush\Drush;
 
 $this->output()->writeln("Flagging collection cleaning");
@@ -13,7 +16,7 @@ $this->output()->writeln("options : [delete-all | delete-nullname | delete-missi
 $this->output()->writeln("The extra options/arguments to this command were:");
 $this->output()->writeln(print_r($extra, true));
 
-$delete_all = fasle;
+$delete_all = false;
 $delete_nullname = false;
 $delete_missing = false;
 $delete_dups = false;