Skip to content

refactor: rename -h option of routes command as --handler#10113

Merged
paulbalandan merged 1 commit intocodeigniter4:developfrom
paulbalandan:rename-routes-option
Apr 13, 2026
Merged

refactor: rename -h option of routes command as --handler#10113
paulbalandan merged 1 commit intocodeigniter4:developfrom
paulbalandan:rename-routes-option

Conversation

@paulbalandan
Copy link
Copy Markdown
Member

Description
The -h shortcut is more commonly known as the shortcut for the --help option, so I found it surprising that it was used as the name for the sort by handler option. This PR changes the option name to --handler (or --sort-by-handler for clarity?). For backward compatibility, use the -h option will still work but a soft warning will be printed in the terminal screen.

Checklist:

  • Securely signed commits
  • Component(s) with PHPDoc blocks, only if necessary or adds value (without duplication)
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

@paulbalandan paulbalandan force-pushed the rename-routes-option branch from f519ca6 to 8d3437c Compare April 13, 2026 08:29
@paulbalandan paulbalandan merged commit 855d60a into codeigniter4:develop Apr 13, 2026
66 of 71 checks passed
@paulbalandan paulbalandan deleted the rename-routes-option branch April 13, 2026 11:51
Copy link
Copy Markdown
Contributor

@neznaika0 neznaika0 left a comment

Choose a reason for hiding this comment

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

It would be nice to add @deprecated or @todo - it can get lost and can't be tracked in any way if you don't use the command

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants