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 $ bin/rails -T # Prints list of Rake tasks... ``` 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: ... $ bin/rails -T Usage: bin/rails COMMAND [options] You must specify a command. The most common commands are: ... ``` Addresses rails#50712. Closes rails#50700.
- Loading branch information
1 parent
4816684
commit faaadb1
Showing
4 changed files
with
104 additions
and
34 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
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