diff options
author | Agrim Mittal <agrimmittal97@gmail.com> | 2018-05-29 10:18:43 +0530 |
---|---|---|
committer | Agrim Mittal <agrimmittal97@gmail.com> | 2018-05-29 10:18:43 +0530 |
commit | 9250dbcc764556928878df612706fc83ca360f2c (patch) | |
tree | bc07c7f65fa206630a2973974e762e34ab8fcf1d | |
parent | 13938da3fa46bc54a7008dd134662091fd16393a (diff) | |
download | bundler-9250dbcc764556928878df612706fc83ca360f2c.tar.gz |
Add documentation for options
-rw-r--r-- | lib/bundler/cli.rb | 4 | ||||
-rw-r--r-- | man/bundle-add.ronn | 8 |
2 files changed, 9 insertions, 3 deletions
diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb index cd382f7a16..926a748231 100644 --- a/lib/bundler/cli.rb +++ b/lib/bundler/cli.rb @@ -335,8 +335,8 @@ module Bundler method_option "source", :aliases => "-s", :type => :string method_option "skip-install", :type => :boolean, :banner => "Adds gem to the Gemfile but does not install it" - method_option "optimistic", :type => :boolean - method_option "strict", :type => :boolean + method_option "optimistic", :type => :boolean, :banner => "Adds optimistic declaration of version to gem" + method_option "strict", :type => :boolean, :banner => "Adds strict declaration of version to gem" def add(gem_name) require "bundler/cli/add" Add.new(options.dup, gem_name).run diff --git a/man/bundle-add.ronn b/man/bundle-add.ronn index 91eb1d7188..1e2d732ec6 100644 --- a/man/bundle-add.ronn +++ b/man/bundle-add.ronn @@ -3,7 +3,7 @@ bundle-add(1) -- Add gem to the Gemfile and run bundle install ## SYNOPSIS -`bundle add` <GEM_NAME> [--group=GROUP] [--version=VERSION] [--source=SOURCE] [--skip-install] +`bundle add` <GEM_NAME> [--group=GROUP] [--version=VERSION] [--source=SOURCE] [--skip-install] [--strict] [--optimistic] ## DESCRIPTION Adds the named gem to the Gemfile and run `bundle install`. `bundle install` can be avoided by using the flag `--skip-install`. @@ -32,3 +32,9 @@ bundle add rails --group "development, test" * `--skip-install`: Adds the gem to the Gemfile but does not install it. + +* `--optimistic`: + Adds optimistic declaration of version + +* `--strict`: + Adds strict declaration of version |