Skip to content

Commit 5e7f84b

Browse files
feat(occ): add default help text with docs link to all commands
Signed-off-by: Josh <[email protected]>
1 parent b4803f9 commit 5e7f84b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/Command/Base.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,11 @@ class Base extends Command implements CompletionAwareInterface {
2424
protected string $defaultOutputFormat = self::OUTPUT_FORMAT_PLAIN;
2525
private bool $php_pcntl_signal = false;
2626
private bool $interrupted = false;
27+
public string $defaultHelp = 'More extensive and thorough documentation may be found at https://docs.nextcloud.com' . PHP_EOL; // TODO: link to appropriately versioned/themed Admin Manual
2728

2829
protected function configure() {
2930
$this
31+
->setHelp($this->defaultHelp)
3032
->addOption(
3133
'output',
3234
null,

0 commit comments

Comments
 (0)