Skip to content

Commit

Permalink
Addition of support for -F as an alias for --features
Browse files Browse the repository at this point in the history
  • Loading branch information
pea-sys committed Feb 26, 2023
1 parent 964b730 commit af90805
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/doc/man/cargo-add.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# cargo-add(1)

{{*set actionverb="Add"}}
{{*set nouns="adds"}}

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

{{#option "`--features` _features_" }}
{{#option "`-F` _features_" "`--features` _features_" }}
Space or comma separated list of [features to
activate](../reference/features.html#dependency-features). When adding multiple
crates, the features for a specific crate may be enabled with
Expand Down
2 changes: 1 addition & 1 deletion src/doc/man/generated_txt/cargo-add.txt
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ OPTIONS
Re-enable the default features
<https://doc.rust-lang.org/cargo/reference/features.html#dependency-features>.

--features features
-F features, --features features
Space or comma separated list of features to activate
<https://doc.rust-lang.org/cargo/reference/features.html#dependency-features>.
When adding multiple crates, the features for a specific crate may
Expand Down
2 changes: 2 additions & 0 deletions src/doc/src/commands/cargo-add.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@




## NAME

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


<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>
<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>
<dd class="option-desc">Space or comma separated list of <a href="../reference/features.html#dependency-features">features to
activate</a>. When adding multiple
Expand Down
1 change: 1 addition & 0 deletions src/etc/man/cargo-add.1
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ Disable the \fIdefault features\fR <https://doc.rust\-lang.org/cargo/reference/f
Re\-enable the \fIdefault features\fR <https://doc.rust\-lang.org/cargo/reference/features.html#dependency\-features>\&.
.RE
.sp
\fB\-F\fR \fIfeatures\fR,
\fB\-\-features\fR \fIfeatures\fR
.RS 4
Space or comma separated list of \fIfeatures to
Expand Down

0 comments on commit af90805

Please sign in to comment.