Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addition of support for -F as an alias for --features #11774

Merged
merged 3 commits into from
Feb 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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