Skip to content

Commit

Permalink
add options-features.md
Browse files Browse the repository at this point in the history
  • Loading branch information
pea-sys committed Feb 26, 2023
1 parent af90805 commit 2c3fec2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
8 changes: 1 addition & 7 deletions src/doc/man/cargo-add.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,7 @@ Disable the [default features](../reference/features.html#dependency-features).
Re-enable the [default features](../reference/features.html#dependency-features).
{{/option}}

{{#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
`package-name/feature-name` syntax. This flag may be specified multiple times,
which enables all specified features.
{{/option}}
{{> options-features }}

{{/options}}

Expand Down
7 changes: 7 additions & 0 deletions src/doc/man/includes/options-features.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{{#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
`package-name/feature-name` syntax. This flag may be specified multiple times,
which enables all specified features.
{{/option}}
1 change: 1 addition & 0 deletions src/doc/src/commands/cargo-add.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ crates, the features for a specific crate may be enabled with
which enables all specified features.</dd>



</dl>


Expand Down

0 comments on commit 2c3fec2

Please sign in to comment.