summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2015-01-25 21:42:30 -0800
committerAndre Arko <andre@arko.net>2015-01-25 23:30:19 -0800
commitd1f3a23f16f01e822be3c3c0e7312524ac80f1f2 (patch)
treed713c9874a88bd7ed413d72c4a2790b85fe6ea5e
parentca7b782d26dfc7ab2ad8b30bc3c425317f16b346 (diff)
downloadbundler-d1f3a23f16f01e822be3c3c0e7312524ac80f1f2.tar.gz
omg banner is not desc, this is way better
old: -t [--test=set the test framework] new: -t [--test] # set the test framework
-rw-r--r--lib/bundler/cli.rb22
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb
index b3f72ae565..9f084a4178 100644
--- a/lib/bundler/cli.rb
+++ b/lib/bundler/cli.rb
@@ -35,10 +35,10 @@ module Bundler
stop_on_unknown_option! :exec
default_task :install
- class_option "no-color", :type => :boolean, :banner => "Disable colorization in output"
- class_option "retry", :type => :numeric, :aliases => "-r", :banner =>
- "Specify the number of times you wish to attempt network commands"
- class_option "verbose", :type => :boolean, :banner => "Enable verbose output mode", :aliases => "-V"
+ class_option "no-color", :type => :boolean, :desc => "Disable colorization in output"
+ class_option "retry", :type => :numeric, :aliases => "-r", :banner => "NUM",
+ :desc => "Specify the number of times you wish to attempt network commands"
+ class_option "verbose", :type => :boolean, :desc => "Enable verbose output mode", :aliases => "-V"
def help(cli = nil)
case cli
@@ -337,15 +337,15 @@ module Bundler
end
desc "gem GEM [OPTIONS]", "Creates a skeleton for creating a rubygem"
- method_option :bin, :type => :boolean, :default => false, :aliases => '-b', :banner => "Generate a binary for your library."
- method_option :coc, :type => :boolean, :banner => "Generate a code of conduct file"
- method_option :edit, :type => :string, :aliases => "-e", :required => false, :banner => "/path/to/your/editor",
+ method_option :bin, :type => :boolean, :default => false, :aliases => '-b', :desc => "Generate a binary for your library. Set a default with `bundle config gem.mit true`."
+ method_option :coc, :type => :boolean, :desc => "Generate a code of conduct file. Set a default with `bundle config gem.coc true`."
+ method_option :edit, :type => :string, :aliases => "-e", :required => false, :banner => "EDITOR",
:lazy_default => [ENV['BUNDLER_EDITOR'], ENV['VISUAL'], ENV['EDITOR']].find{|e| !e.nil? && !e.empty? },
:desc => "Open generated gemspec in the specified editor (defaults to $EDITOR or $BUNDLER_EDITOR)"
- method_option :ext, :type => :boolean, :default => false, :banner => "Generate the boilerplate for C extension code"
- method_option :mit, :type => :boolean, :banner => "Generate an MIT license file"
- method_option :test, :type => :string, :lazy_default => 'rspec', :aliases => '-t',
- :banner => "Generate a test directory for your library: 'rspec' is the default, but 'minitest' is also supported."
+ method_option :ext, :type => :boolean, :default => false, :desc => "Generate the boilerplate for C extension code"
+ method_option :mit, :type => :boolean, :desc => "Generate an MIT license file"
+ method_option :test, :type => :string, :lazy_default => 'rspec', :aliases => '-t', :banner => "rspec",
+ :desc => "Generate a test directory for your library, either rspec or minitest. Set a default with `bundle config gem.test rspec`."
def gem(name)
require 'bundler/cli/gem'
Gem.new(options, name, self).run