Skip to content

Commit 2c3fec2

Browse files
committed
add options-features.md
1 parent af90805 commit 2c3fec2

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

src/doc/man/cargo-add.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,7 @@ Disable the [default features](../reference/features.html#dependency-features).
116116
Re-enable the [default features](../reference/features.html#dependency-features).
117117
{{/option}}
118118

119-
{{#option "`-F` _features_" "`--features` _features_" }}
120-
Space or comma separated list of [features to
121-
activate](../reference/features.html#dependency-features). When adding multiple
122-
crates, the features for a specific crate may be enabled with
123-
`package-name/feature-name` syntax. This flag may be specified multiple times,
124-
which enables all specified features.
125-
{{/option}}
119+
{{> options-features }}
126120

127121
{{/options}}
128122

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{{#option "`-F` _features_" "`--features` _features_" }}
2+
Space or comma separated list of [features to
3+
activate](../reference/features.html#dependency-features). When adding multiple
4+
crates, the features for a specific crate may be enabled with
5+
`package-name/feature-name` syntax. This flag may be specified multiple times,
6+
which enables all specified features.
7+
{{/option}}

src/doc/src/commands/cargo-add.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ crates, the features for a specific crate may be enabled with
131131
which enables all specified features.</dd>
132132

133133

134+
134135
</dl>
135136

136137

0 commit comments

Comments
 (0)