Merge pull request #54180 from nextcloud/jtr-feat-occ-default-help-docs-link

feat(occ): add default help text with docs link to all commands
pull/54832/head
Andy Scherzinger 2025-09-02 23:20:21 +07:00 committed by GitHub
commit 80afc26ae1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

@ -26,7 +26,10 @@ class Base extends Command implements CompletionAwareInterface {
private bool $interrupted = false;
protected function configure() {
// Some of our commands do not extend this class; and some of those that do do not call parent::configure()
$defaultHelp = 'More extensive and thorough documentation may be found at ' . \OCP\Server::get(\OCP\Defaults::class)->getDocBaseUrl() . PHP_EOL;
$this
->setHelp($defaultHelp)
->addOption(
'output',
null,