Skip to content

Commit a4764b0

Browse files
committed
Auto merge of #12962 - hi-rustin:rustin-patch-cargo-search, r=weihanglo
Improve about information of `cargo search`
2 parents 2cbbf6e + 3076190 commit a4764b0

File tree

6 files changed

+9
-6
lines changed

6 files changed

+9
-6
lines changed

src/bin/cargo/commands/search.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use cargo::ops;
66

77
pub fn cli() -> Command {
88
subcommand("search")
9-
.about("Search packages in crates.io")
9+
.about("Search packages in the registry. Default registry is crates.io")
1010
.arg(Arg::new("query").value_name("QUERY").num_args(0..))
1111
.arg(
1212
opt(

src/doc/man/cargo-search.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## NAME
44

5-
cargo-search --- Search packages in crates.io
5+
cargo-search --- Search packages in the registry. Default registry is crates.io
66

77
## SYNOPSIS
88

@@ -49,4 +49,5 @@ Limit the number of results (default: 10, max: 100).
4949
cargo search serde
5050

5151
## SEE ALSO
52+
5253
{{man "cargo" 1}}, {{man "cargo-install" 1}}, {{man "cargo-publish" 1}}

src/doc/man/generated_txt/cargo-search.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
CARGO-SEARCH(1)
22

33
NAME
4-
cargo-search — Search packages in crates.io
4+
cargo-search — Search packages in the registry. Default registry is
5+
crates.io
56

67
SYNOPSIS
78
cargo search [options] [query…]

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## NAME
44

5-
cargo-search --- Search packages in crates.io
5+
cargo-search --- Search packages in the registry. Default registry is crates.io
66

77
## SYNOPSIS
88

@@ -131,4 +131,5 @@ details on environment variables that Cargo reads.
131131
cargo search serde
132132

133133
## SEE ALSO
134+
134135
[cargo(1)](cargo.html), [cargo-install(1)](cargo-install.html), [cargo-publish(1)](cargo-publish.html)

src/etc/man/cargo-search.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
.ad l
55
.ss \n[.ss] 0
66
.SH "NAME"
7-
cargo\-search \[em] Search packages in crates.io
7+
cargo\-search \[em] Search packages in the registry. Default registry is crates.io
88
.SH "SYNOPSIS"
99
\fBcargo search\fR [\fIoptions\fR] [\fIquery\fR\[u2026]]
1010
.SH "DESCRIPTION"

tests/testsuite/cargo_search/help/stdout.log

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Search packages in crates.io
1+
Search packages in the registry. Default registry is crates.io
22

33
Usage: cargo[EXE] search [OPTIONS] [QUERY]...
44

0 commit comments

Comments
 (0)