Skip to content

Commit

Permalink
Auto merge of rust-lang#12962 - hi-rustin:rustin-patch-cargo-search, …
Browse files Browse the repository at this point in the history
…r=weihanglo

Improve about information of `cargo search`
  • Loading branch information
bors committed Nov 13, 2023
2 parents 2cbbf6e + 3076190 commit a4764b0
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/bin/cargo/commands/search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use cargo::ops;

pub fn cli() -> Command {
subcommand("search")
.about("Search packages in crates.io")
.about("Search packages in the registry. Default registry is crates.io")
.arg(Arg::new("query").value_name("QUERY").num_args(0..))
.arg(
opt(
Expand Down
3 changes: 2 additions & 1 deletion src/doc/man/cargo-search.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## NAME

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

## SYNOPSIS

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

## SEE ALSO

{{man "cargo" 1}}, {{man "cargo-install" 1}}, {{man "cargo-publish" 1}}
3 changes: 2 additions & 1 deletion src/doc/man/generated_txt/cargo-search.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
CARGO-SEARCH(1)

NAME
cargo-search — Search packages in crates.io
cargo-search — Search packages in the registry. Default registry is
crates.io

SYNOPSIS
cargo search [options] [query…]
Expand Down
3 changes: 2 additions & 1 deletion src/doc/src/commands/cargo-search.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## NAME

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

## SYNOPSIS

Expand Down Expand Up @@ -131,4 +131,5 @@ details on environment variables that Cargo reads.
cargo search serde

## SEE ALSO

[cargo(1)](cargo.html), [cargo-install(1)](cargo-install.html), [cargo-publish(1)](cargo-publish.html)
2 changes: 1 addition & 1 deletion src/etc/man/cargo-search.1
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
.ad l
.ss \n[.ss] 0
.SH "NAME"
cargo\-search \[em] Search packages in crates.io
cargo\-search \[em] Search packages in the registry. Default registry is crates.io
.SH "SYNOPSIS"
\fBcargo search\fR [\fIoptions\fR] [\fIquery\fR\[u2026]]
.SH "DESCRIPTION"
Expand Down
2 changes: 1 addition & 1 deletion tests/testsuite/cargo_search/help/stdout.log
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Search packages in crates.io
Search packages in the registry. Default registry is crates.io

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

Expand Down

0 comments on commit a4764b0

Please sign in to comment.