forked from rails/rails
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Print bin/rails help on unrecognized bare options
Prior to this commit, `bin/rails` would pass unrecognized bare options on to Rake: ```console $ bin/rails -v Rails 7.2.0.alpha $ bin/rails -V rake, version 13.0.6 $ bin/rails -s Running 0 tests in a single process (parallelization threshold is 50) ... $ bin/rails -S invalid option: -S ``` This commit changes `bin/rails` to print its help message when given an unrecognized bare option: ```console $ bin/rails -v Rails 7.2.0.alpha $ bin/rails -V Usage: bin/rails COMMAND [options] You must specify a command. The most common commands are: ... $ bin/rails -s Usage: bin/rails COMMAND [options] You must specify a command. The most common commands are: ... $ bin/rails -S Usage: bin/rails COMMAND [options] You must specify a command. The most common commands are: ... ``` However, for backward compatibility, an exception has been made for the `-T` / `--tasks` option: ```console $ bin/rails -T # Prints list of Rake tasks... ``` Addresses rails#50712.
- Loading branch information
1 parent
78fd6b7
commit dc85b95
Showing
3 changed files
with
72 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters