Skip to content

Commit e7b11e7

Browse files
committed
Auto merge of #11774 - pea-sys:update-cargo-add-doc, r=weihanglo
Addition of support for -F as an alias for --features Updated documentation for #10576
2 parents 447ccb4 + b88504a commit e7b11e7

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

Diff for: src/doc/man/cargo-add.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# cargo-add(1)
2+
23
{{*set actionverb="Add"}}
34
{{*set nouns="adds"}}
45

@@ -115,7 +116,7 @@ Disable the [default features](../reference/features.html#dependency-features).
115116
Re-enable the [default features](../reference/features.html#dependency-features).
116117
{{/option}}
117118

118-
{{#option "`--features` _features_" }}
119+
{{#option "`-F` _features_" "`--features` _features_" }}
119120
Space or comma separated list of [features to
120121
activate](../reference/features.html#dependency-features). When adding multiple
121122
crates, the features for a specific crate may be enabled with

Diff for: src/doc/man/generated_txt/cargo-add.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ OPTIONS
103103
Re-enable the default features
104104
<https://doc.rust-lang.org/cargo/reference/features.html#dependency-features>.
105105

106-
--features features
106+
-F features, --features features
107107
Space or comma separated list of features to activate
108108
<https://doc.rust-lang.org/cargo/reference/features.html#dependency-features>.
109109
When adding multiple crates, the features for a specific crate may

Diff for: src/doc/src/commands/cargo-add.md

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33

44

5+
56
## NAME
67

78
cargo-add --- Add dependencies to a Cargo.toml manifest file
@@ -121,6 +122,7 @@ which is defined by the <code>registry.default</code> config key which defaults
121122
<dd class="option-desc">Re-enable the <a href="../reference/features.html#dependency-features">default features</a>.</dd>
122123

123124

125+
<dt class="option-term" id="option-cargo-add--F"><a class="option-anchor" href="#option-cargo-add--F"></a><code>-F</code> <em>features</em></dt>
124126
<dt class="option-term" id="option-cargo-add---features"><a class="option-anchor" href="#option-cargo-add---features"></a><code>--features</code> <em>features</em></dt>
125127
<dd class="option-desc">Space or comma separated list of <a href="../reference/features.html#dependency-features">features to
126128
activate</a>. When adding multiple

Diff for: src/etc/man/cargo-add.1

+1
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ Disable the \fIdefault features\fR <https://doc.rust\-lang.org/cargo/reference/f
130130
Re\-enable the \fIdefault features\fR <https://doc.rust\-lang.org/cargo/reference/features.html#dependency\-features>\&.
131131
.RE
132132
.sp
133+
\fB\-F\fR \fIfeatures\fR,
133134
\fB\-\-features\fR \fIfeatures\fR
134135
.RS 4
135136
Space or comma separated list of \fIfeatures to

0 commit comments

Comments
 (0)