Skip to content
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions apps/files_trashbin/lib/Command/ExpireTrash.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,12 @@ protected function configure(): void {
parent::configure();
$this
->setName('trashbin:expire')
->setDescription('Expires the users trashbin')
->setDescription('Delete expired files from the trashbin')
->setHelp('Deletes expired files from the trashbin according to the configured retention and space policy. This does not disable the trashbin or unconditionally empty it.')

@come-nc come-nc Aug 18, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
->setHelp('Deletes expired files from the trashbin according to the configured retention and space policy. This does not disable the trashbin or unconditionally empty it.')
->setHelp('Deletes expired files from the trashbin according to the configured retention and space policy.')

The help should not detail what the command does not do, that is confusing.
It does not do a lot of other stuff as well.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Applied in 38e544a - the help string is now exactly your suggestion, with the "does not" clause dropped. Flagging it since the thread went outdated rather than resolved.

->addArgument(
'user_id',
InputArgument::OPTIONAL | InputArgument::IS_ARRAY,
'expires the trashbin of the given user(s), if no user is given the trash for all users will be expired'
'Limit processing to the given user ID(s); if no user ID is given, all users are processed'
);
}

Expand Down