improved cleanflaglist script

This commit is contained in:
Bachir Soussi Chiadmi 2022-10-18 15:06:33 +02:00
parent 1beb2b4dfa
commit 17b6581aa6
1 changed files with 4 additions and 1 deletions

View File

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