summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorThe Bundler Bot <bot@bundler.io>2018-06-06 01:02:26 +0000
committerThe Bundler Bot <bot@bundler.io>2018-06-06 01:02:26 +0000
commit43b4fa97515a30bfcea6b34d171ef6afb56d3146 (patch)
tree444018f3ede2843f1eceb3fa75013462908ea810 /man
parentce0ef4de8a50ce01d1db194f663a10f110eaf9f0 (diff)
parent9250dbcc764556928878df612706fc83ca360f2c (diff)
downloadbundler-43b4fa97515a30bfcea6b34d171ef6afb56d3146.tar.gz
Auto merge of #6556 - agrim123:agr-versions-gem-add, r=colby-swandale
[bundle add] Add version prefix flexibility ### What was the end-user problem that led to this PR? By default, on `bundle add` we use "pessimistic" way (~>) of versions. According to this [comment](https://github.com/bundler/bundler/issues/6553#issue-326023952) some users face problems. ### What was your diagnosis of the problem? Adding flags to provide flexibility to change this declaration namely `optimistic` and `strict` ### What is your fix for the problem, implemented in this PR? Adding flags to opt for other declarations. ### Why did you choose this fix out of the possible options? Currently, its an experiment and I have added it to only `bundle add` but still the version locked in lockfile are "pessimistic". Need suggestions on this and on how to proceed. Addresses #6553
Diffstat (limited to 'man')
-rw-r--r--man/bundle-add.ronn8
1 files changed, 7 insertions, 1 deletions
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