Rename -q option to -y for user delete console command
- Name was misleading, it isn't quiet mode but non-interactive mode
This commit is contained in:
parent
59c42a9237
commit
b4910066b6
1 changed files with 4 additions and 4 deletions
|
@ -59,7 +59,7 @@ console user - Modify user settings per console commands.
|
||||||
Usage
|
Usage
|
||||||
bin/console user password <nickname> [<password>] [-h|--help|-?] [-v]
|
bin/console user password <nickname> [<password>] [-h|--help|-?] [-v]
|
||||||
bin/console user add [<name> [<nickname> [<email> [<language>]]]] [-h|--help|-?] [-v]
|
bin/console user add [<name> [<nickname> [<email> [<language>]]]] [-h|--help|-?] [-v]
|
||||||
bin/console user delete [<nickname>] [-q] [-h|--help|-?] [-v]
|
bin/console user delete [<nickname>] [-y] [-h|--help|-?] [-v]
|
||||||
bin/console user allow [<nickname>] [-h|--help|-?] [-v]
|
bin/console user allow [<nickname>] [-h|--help|-?] [-v]
|
||||||
bin/console user deny [<nickname>] [-h|--help|-?] [-v]
|
bin/console user deny [<nickname>] [-h|--help|-?] [-v]
|
||||||
bin/console user block [<nickname>] [-h|--help|-?] [-v]
|
bin/console user block [<nickname>] [-h|--help|-?] [-v]
|
||||||
|
@ -78,8 +78,8 @@ Description
|
||||||
|
|
||||||
Options
|
Options
|
||||||
-h|--help|-? Show help information
|
-h|--help|-? Show help information
|
||||||
-v Show more debug information.
|
-v Show more debug information
|
||||||
-q Quiet mode (don't ask for a command).
|
-y Non-interactive mode, assume "yes" as answer to the user deletion prompt
|
||||||
HELP;
|
HELP;
|
||||||
return $help;
|
return $help;
|
||||||
}
|
}
|
||||||
|
@ -314,7 +314,7 @@ HELP;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$this->getOption('q')) {
|
if (!$this->getOption('y')) {
|
||||||
$this->out($this->l10n->t('Type "yes" to delete %s', $nick));
|
$this->out($this->l10n->t('Type "yes" to delete %s', $nick));
|
||||||
if (CliPrompt::prompt() !== 'yes') {
|
if (CliPrompt::prompt() !== 'yes') {
|
||||||
throw new RuntimeException($this->l10n->t('Deletion aborted.'));
|
throw new RuntimeException($this->l10n->t('Deletion aborted.'));
|
||||||
|
|
Loading…
Reference in a new issue