Skip to content

Commit

Permalink
ListCommand: remove -n shortcut because it colides with built-in options
Browse files Browse the repository at this point in the history
  • Loading branch information
mabar committed Jan 26, 2024
1 parent e2f36be commit 1782b9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ List all scheduled jobs (in `expression / second (timezone) [id] name... next-du

`bin/console scheduler:list`

- use `--next` (or `-n`) to sort jobs by their next execution time
- use `--next` to sort jobs by their next execution time
- `--next=N` lists only *N* next jobs (e.g. `--next=3` prints maximally 3)
- use `-v` to display absolute times
- use `--timezone` (or `-tz`) to display times in specified timezone instead of one used by application
Expand Down
2 changes: 1 addition & 1 deletion src/Command/ListCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ protected function configure(): void
{
/** @infection-ignore-all */
parent::configure();
$this->addOption('next', 'n', InputOption::VALUE_OPTIONAL, 'Sort jobs by their next execution time', false);
$this->addOption('next', null, InputOption::VALUE_OPTIONAL, 'Sort jobs by their next execution time', false);
$this->addOption('timezone', 'tz', InputOption::VALUE_REQUIRED, 'The timezone times should be displayed in');
}

Expand Down

0 comments on commit 1782b9e

Please sign in to comment.