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

Improve about information of cargo search #12962

Merged
merged 2 commits into from
Nov 13, 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
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