Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
Add documentation for options
Browse files Browse the repository at this point in the history
  • Loading branch information
agrim123 committed May 29, 2018
1 parent 13938da commit 9250dbc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/bundler/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,8 @@ def binstubs(*gems)
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
Expand Down
8 changes: 7 additions & 1 deletion man/bundle-add.ronn
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down Expand Up @@ -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

0 comments on commit 9250dbc

Please sign in to comment.