summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThe Bundler Bot <bot@bundler.io>2018-04-18 21:54:13 +0000
committerThe Bundler Bot <bot@bundler.io>2018-04-18 21:54:13 +0000
commitbbd0b49aa2260de17b697a21f2bb932959284c5c (patch)
tree9c2096a7e430828fc9de21f30f0cabfa71502e73
parent822d5b278ecdae70912fe75517cf3cbdb1d53649 (diff)
parent5f6107fc8d0c32d1c07d4b6c741008525c7ce8d7 (diff)
downloadbundler-bbd0b49aa2260de17b697a21f2bb932959284c5c.tar.gz
Auto merge of #6493 - agrim123:agr-update-bundle-update-docs, r=colby-swandale
Add documentation for --all flag of bundle update ### What was the end-user problem that led to this PR? `bundle update` throws an error if run without any flags. `--all` flag was introduced to update all gems instead of no flags. This was not mentioned in docs.
-rw-r--r--man/bundle-update.ronn16
1 files changed, 10 insertions, 6 deletions
diff --git a/man/bundle-update.ronn b/man/bundle-update.ronn
index 413a446c60..493986a7a4 100644
--- a/man/bundle-update.ronn
+++ b/man/bundle-update.ronn
@@ -3,7 +3,8 @@ bundle-update(1) -- Update your gems to the latest available versions
## SYNOPSIS
-`bundle update` <*gems> [--group=NAME]
+`bundle update` <*gems> [--all]
+ [--group=NAME]
[--source=NAME]
[--local]
[--ruby]
@@ -18,7 +19,7 @@ bundle-update(1) -- Update your gems to the latest available versions
## DESCRIPTION
-Update the gems specified (all gems, if none are specified), ignoring
+Update the gems specified (all gems, if `--all` flag is used), ignoring
the previously installed gems specified in the `Gemfile.lock`. In
general, you should use [bundle install(1)][bundle-install(1)] to install the same exact
gems and versions across machines.
@@ -28,6 +29,9 @@ gem.
## OPTIONS
+* `--all`:
+ Update all gems specified in Gemfile.
+
* `--group=<name>`, `-g=[<name>]`:
Only update the gems in the specified group. For instance, you can update all gems
in the development group with `bundle update --group development`. You can also
@@ -80,7 +84,7 @@ gem.
## UPDATING ALL GEMS
-If you run `bundle update` with no parameters, bundler will ignore
+If you run `bundle update --all`, bundler will ignore
any previously installed gems and resolve all dependencies again
based on the latest versions of all gems available in the sources.
@@ -139,10 +143,10 @@ the gems you use.
However, from time to time, you might want to update the gems you are using to the
newest versions that still match the gems in your Gemfile(5).
-To do this, run `bundle update`, which will ignore the `Gemfile.lock`, and resolve
+To do this, run `bundle update --all`, which will ignore the `Gemfile.lock`, and resolve
all the dependencies again. Keep in mind that this process can result in a significantly
different set of the 25 gems, based on the requirements of new gems that the gem
-authors released since the last time you ran `bundle update`.
+authors released since the last time you ran `bundle update --all`.
## UPDATING A LIST OF GEMS
@@ -343,4 +347,4 @@ use the following workflow:
* If you want to update all the gems to the latest possible versions that
still match the gems listed in the Gemfile(5), run
- $ bundle update
+ $ bundle update --all