diff options
Diffstat (limited to 'lib/bundler/cli.rb')
-rw-r--r-- | lib/bundler/cli.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb index 3cefc90970..3406a874ce 100644 --- a/lib/bundler/cli.rb +++ b/lib/bundler/cli.rb @@ -263,10 +263,11 @@ module Bundler # TODO: 2.0 remove `bundle show` if Bundler.feature_flag.list_command? - desc "list", "list all gems in the bundle" + desc "list", "List all gems in the bundle" + method_option "name-only", :type => :boolean, :banner => "print only the gem names" def list require "bundler/cli/list" - List.new.run + List.new(options).run end map %w[ls] => "list" |