aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler/cli.rb
diff options
context:
space:
mode:
authorBoggs <hello@boggs.xyz>2016-06-29 10:05:58 +0800
committerBoggs <hello@boggs.xyz>2016-06-29 10:05:58 +0800
commit0924cd90891b214a2c581216132c38392ded4eff (patch)
tree8713e0b93817e5f3d7ae43e9b8e2e852fa456015 /lib/bundler/cli.rb
parent6e80b111f1d098782c8788ea1632545cab1f70af (diff)
downloadbundler-0924cd90891b214a2c581216132c38392ded4eff.tar.gz
Fix prerelease version picking
Add aliases for method options Rename flag for timestamp
Diffstat (limited to 'lib/bundler/cli.rb')
-rw-r--r--lib/bundler/cli.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb
index ab48d660..7ddd7794 100644
--- a/lib/bundler/cli.rb
+++ b/lib/bundler/cli.rb
@@ -445,10 +445,10 @@ module Bundler
end
desc "add GEM [VERSION]", "Add the specified gem to the bottom of Gemfile"
- method_option "group", :type => :array, :desc => "Specify groups to add the gem in"
- method_option "source", :type => :string, :desc => "Specify the gem's source"
- method_option "pre", :type => :boolean, :default => false, :desc => "Check for newer pre-release gems"
- method_option "append-timestamp", :type => :boolean, :default => false, :desc => "Append timestamp to Gemfile"
+ method_option "group", :type => :array, :aliases => "-g", :desc => "Specify groups to add the gem in"
+ method_option "source", :type => :string, :aliases => "-s", :desc => "Specify the gem's source"
+ method_option "pre", :type => :boolean, :aliases => "-p", :default => false, :desc => "Check for newer pre-release gems"
+ method_option "timestamp", :type => :boolean, :aliases => "-t", :default => false, :desc => "Append timestamp to Gemfile"
def add(name, version = nil, *gems)
require "bundler/cli/inject"
Inject.new(options, name, version, gems).run