diff --git a/src/doc/man/cargo-login.md b/src/doc/man/cargo-login.md index 197636da8df..46681f7ef90 100644 --- a/src/doc/man/cargo-login.md +++ b/src/doc/man/cargo-login.md @@ -6,7 +6,7 @@ cargo-login --- Log in to a registry ## SYNOPSIS -`cargo login` [_options_] [_token_] -- [_args_] +`cargo login` [_options_] [_token_] [`--` _args_] ## DESCRIPTION @@ -14,6 +14,8 @@ This command will run a credential provider to save a token so that commands that require authentication, such as {{man "cargo-publish" 1}}, will be automatically authenticated. +All the arguments following the two dashes (`--`) are passed to the credential provider. + For the default `cargo:token` credential provider, the token is saved in `$CARGO_HOME/credentials.toml`. `CARGO_HOME` defaults to `.cargo` in your home directory. diff --git a/src/doc/man/generated_txt/cargo-login.txt b/src/doc/man/generated_txt/cargo-login.txt index ae8127fc9d9..585a7bf2eb7 100644 --- a/src/doc/man/generated_txt/cargo-login.txt +++ b/src/doc/man/generated_txt/cargo-login.txt @@ -4,13 +4,16 @@ NAME cargo-login — Log in to a registry SYNOPSIS - cargo login [options] [token] – [args] + cargo login [options] [token] [-- args] DESCRIPTION This command will run a credential provider to save a token so that commands that require authentication, such as cargo-publish(1), will be automatically authenticated. + All the arguments following the two dashes (--) are passed to the + credential provider. + For the default cargo:token credential provider, the token is saved in $CARGO_HOME/credentials.toml. CARGO_HOME defaults to .cargo in your home directory. diff --git a/src/doc/src/commands/cargo-login.md b/src/doc/src/commands/cargo-login.md index e2efcfe4fed..ffdacfc5a08 100644 --- a/src/doc/src/commands/cargo-login.md +++ b/src/doc/src/commands/cargo-login.md @@ -6,7 +6,7 @@ cargo-login --- Log in to a registry ## SYNOPSIS -`cargo login` [_options_] [_token_] -- [_args_] +`cargo login` [_options_] [_token_] [`--` _args_] ## DESCRIPTION @@ -14,6 +14,8 @@ This command will run a credential provider to save a token so that commands that require authentication, such as [cargo-publish(1)](cargo-publish.html), will be automatically authenticated. +All the arguments following the two dashes (`--`) are passed to the credential provider. + For the default `cargo:token` credential provider, the token is saved in `$CARGO_HOME/credentials.toml`. `CARGO_HOME` defaults to `.cargo` in your home directory. diff --git a/src/etc/man/cargo-login.1 b/src/etc/man/cargo-login.1 index 92b3b3f3c30..16f5773fa34 100644 --- a/src/etc/man/cargo-login.1 +++ b/src/etc/man/cargo-login.1 @@ -6,12 +6,14 @@ .SH "NAME" cargo\-login \[em] Log in to a registry .SH "SYNOPSIS" -\fBcargo login\fR [\fIoptions\fR] [\fItoken\fR] \[en] [\fIargs\fR] +\fBcargo login\fR [\fIoptions\fR] [\fItoken\fR] [\fB\-\-\fR \fIargs\fR] .SH "DESCRIPTION" This command will run a credential provider to save a token so that commands that require authentication, such as \fBcargo\-publish\fR(1), will be automatically authenticated. .sp +All the arguments following the two dashes (\fB\-\-\fR) are passed to the credential provider. +.sp For the default \fBcargo:token\fR credential provider, the token is saved in \fB$CARGO_HOME/credentials.toml\fR\&. \fBCARGO_HOME\fR defaults to \fB\&.cargo\fR in your home directory.