Skip to content

Commit 4070da1

Browse files
Add several missing flags to bundle lock --help
1 parent 2a01773 commit 4070da1

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

bundler/lib/bundler/man/bundle-lock.1

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,17 @@
44
.SH "NAME"
55
\fBbundle\-lock\fR \- Creates / Updates a lockfile without installing
66
.SH "SYNOPSIS"
7-
\fBbundle lock\fR [\-\-update] [\-\-local] [\-\-print] [\-\-lockfile=PATH] [\-\-full\-index] [\-\-gemfile=GEMFILE] [\-\-add\-platform] [\-\-remove\-platform] [\-\-patch] [\-\-minor] [\-\-major] [\-\-strict] [\-\-conservative]
7+
\fBbundle lock\fR [\-\-update] [\-\-bundler[=BUNDLER]] [\-\-local] [\-\-print] [\-\-lockfile=PATH] [\-\-full\-index] [\-\-gemfile=GEMFILE] [\-\-add\-checkums] [\-\-add\-platform] [\-\-remove\-platform] [\-\-normalize\-platforms] [\-\-patch] [\-\-minor] [\-\-major] [\-\-pre] [\-\-strict] [\-\-conservative]
88
.SH "DESCRIPTION"
99
Lock the gems specified in Gemfile\.
1010
.SH "OPTIONS"
1111
.TP
1212
\fB\-\-update=<*gems>\fR
1313
Ignores the existing lockfile\. Resolve then updates lockfile\. Taking a list of gems or updating all gems if no list is given\.
1414
.TP
15+
\fB\-\-bundler[=BUNDLER]\fR
16+
Update the locked version of bundler to the given version or the latest version if no version is given\.
17+
.TP
1518
\fB\-\-local\fR
1619
Do not attempt to connect to \fBrubygems\.org\fR\. Instead, Bundler will use the gems already present in Rubygems' cache or in \fBvendor/cache\fR\. Note that if a appropriate platform\-specific gem exists on \fBrubygems\.org\fR it will not be found\.
1720
.TP
@@ -27,12 +30,18 @@ Fall back to using the single\-file index of all gems\.
2730
\fB\-\-gemfile=GEMFILE\fR
2831
Use the specified gemfile instead of [\fBGemfile(5)\fR][Gemfile(5)]\.
2932
.TP
33+
\fB\-\-add\-checksums\fR
34+
Add checksums to the lockfile\.
35+
.TP
3036
\fB\-\-add\-platform\fR
3137
Add a new platform to the lockfile, re\-resolving for the addition of that platform\.
3238
.TP
3339
\fB\-\-remove\-platform\fR
3440
Remove a platform from the lockfile\.
3541
.TP
42+
\fB\-\-normalize\-platforms\fR
43+
Normalize lockfile platforms\.
44+
.TP
3645
\fB\-\-patch\fR
3746
If updating, prefer updating only to next patch version\.
3847
.TP
@@ -42,6 +51,9 @@ If updating, prefer updating only to next minor version\.
4251
\fB\-\-major\fR
4352
If updating, prefer updating to next major version (default)\.
4453
.TP
54+
\fB\-\-pre\fR
55+
If updating, always choose the highest allowed version, regardless of prerelease status\.
56+
.TP
4557
\fB\-\-strict\fR
4658
If updating, do not allow any gem to be updated past latest \-\-patch | \-\-minor | \-\-major\.
4759
.TP

bundler/lib/bundler/man/bundle-lock.1.ronn

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,20 @@ bundle-lock(1) -- Creates / Updates a lockfile without installing
44
## SYNOPSIS
55

66
`bundle lock` [--update]
7+
[--bundler[=BUNDLER]]
78
[--local]
89
[--print]
910
[--lockfile=PATH]
1011
[--full-index]
1112
[--gemfile=GEMFILE]
13+
[--add-checkums]
1214
[--add-platform]
1315
[--remove-platform]
16+
[--normalize-platforms]
1417
[--patch]
1518
[--minor]
1619
[--major]
20+
[--pre]
1721
[--strict]
1822
[--conservative]
1923

@@ -27,6 +31,10 @@ Lock the gems specified in Gemfile.
2731
Ignores the existing lockfile. Resolve then updates lockfile. Taking a list
2832
of gems or updating all gems if no list is given.
2933

34+
* `--bundler[=BUNDLER]`:
35+
Update the locked version of bundler to the given version or the latest
36+
version if no version is given.
37+
3038
* `--local`:
3139
Do not attempt to connect to `rubygems.org`. Instead, Bundler will use the
3240
gems already present in Rubygems' cache or in `vendor/cache`. Note that if a
@@ -45,13 +53,19 @@ Lock the gems specified in Gemfile.
4553
* `--gemfile=GEMFILE`:
4654
Use the specified gemfile instead of [`Gemfile(5)`][Gemfile(5)].
4755

56+
* `--add-checksums`:
57+
Add checksums to the lockfile.
58+
4859
* `--add-platform`:
4960
Add a new platform to the lockfile, re-resolving for the addition of that
5061
platform.
5162

5263
* `--remove-platform`:
5364
Remove a platform from the lockfile.
5465

66+
* `--normalize-platforms`:
67+
Normalize lockfile platforms.
68+
5569
* `--patch`:
5670
If updating, prefer updating only to next patch version.
5771

@@ -61,6 +75,9 @@ Lock the gems specified in Gemfile.
6175
* `--major`:
6276
If updating, prefer updating to next major version (default).
6377

78+
* `--pre`:
79+
If updating, always choose the highest allowed version, regardless of prerelease status.
80+
6481
* `--strict`:
6582
If updating, do not allow any gem to be updated past latest --patch | --minor | --major.
6683

0 commit comments

Comments
 (0)