diff --git a/docs/occ.md b/docs/occ.md index 57b388e9904..bd7f20f45a5 100644 --- a/docs/occ.md +++ b/docs/occ.md @@ -6,7 +6,7 @@ Install a new bot on the server ### Usage -* `talk:bot:install [--output [OUTPUT]] [--no-setup] [-f|--features FEATURES] [--] []` +* `talk:bot:install [--output [OUTPUT]] [--no-setup] [-f|--feature FEATURE] [--] []` | Arguments | Description | Is required | Is array | Default | |---|---|---|---|---| @@ -19,7 +19,7 @@ Install a new bot on the server |---|---|---|---|---| | `--output` | Output format (plain, json or json_pretty, default is plain) | yes | no | no | 'plain'` | | `--no-setup` | Prevent moderators from setting up the bot in a conversation | no | no | no | false` | -| `--features|-f` | Specify the list of features for the bot - webhook: The bot receives posted chat messages as webhooks - response: The bot can post messages and reactions as a response - none: When all features should be disabled for the bot | yes | yes | yes | array ()` | +| `--feature|-f` | Specify the list of features for the bot - webhook: The bot receives posted chat messages as webhooks - response: The bot can post messages and reactions as a response - none: When all features should be disabled for the bot | yes | yes | yes | array ()` | ## talk:bot:list diff --git a/lib/Command/Bot/Install.php b/lib/Command/Bot/Install.php index fdcf038043c..0fb91e4178a 100644 --- a/lib/Command/Bot/Install.php +++ b/lib/Command/Bot/Install.php @@ -73,7 +73,7 @@ protected function configure(): void { 'Prevent moderators from setting up the bot in a conversation' ) ->addOption( - 'features', + 'feature', 'f', InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'Specify the list of features for the bot' . "\n"