Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
8 changes: 3 additions & 5 deletions bundler/lib/bundler/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,9 @@ def self.default_command(meth = nil)
default_cli_command = Bundler.settings[:default_cli_command]
return default_cli_command if default_cli_command

Bundler.ui.warn(<<~MSG)
In the next version of Bundler, running `bundle` without argument will no longer run `bundle install`.
Instead, the `help` command will be displayed.

If you'd like to keep the previous behaviour please run `bundle config set default_cli_command install --global`.
Bundler.ui.info(<<~MSG)
Running `bundle` without argument runs `bundle install`.
If you want the help, use `bundle --help`.
MSG

"install"
Expand Down
4 changes: 2 additions & 2 deletions bundler/spec/bundler/cli_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ def out_with_macos_man_workaround
end

context "with no arguments" do
it "installs and log a warning by default" do
it "installs by default and prints how to show the help" do
bundle "", raise_on_error: false
expect(err).to include("running `bundle` without argument will no longer run `bundle install`.")
expect(out).to include("If you want the help, use `bundle --help`.")
expect(err).to include("Could not locate Gemfile")
end

Expand Down