Skip to content

Commit

Permalink
Merge pull request #10306 from nextcloud/followup/10289/fix-flag-name
Browse files Browse the repository at this point in the history
fix(bots): Fix option name
  • Loading branch information
nickvergessen authored Aug 22, 2023
2 parents 394f1a1 + 09efd05 commit b01e3f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/occ.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Install a new bot on the server

### Usage

* `talk:bot:install [--output [OUTPUT]] [--no-setup] [-f|--features FEATURES] [--] <name> <secret> <url> [<description>]`
* `talk:bot:install [--output [OUTPUT]] [--no-setup] [-f|--feature FEATURE] [--] <name> <secret> <url> [<description>]`

| Arguments | Description | Is required | Is array | Default |
|---|---|---|---|---|
Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion lib/Command/Bot/Install.php
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit b01e3f6

Please sign in to comment.