Skip to content

Commit

Permalink
Better argument description
Browse files Browse the repository at this point in the history
  • Loading branch information
BakerNet committed Mar 6, 2024
1 parent f0d27a1 commit 4933953
Showing 1 changed file with 12 additions and 16 deletions.
28 changes: 12 additions & 16 deletions crates/uv/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -343,11 +343,10 @@ struct PipCompileArgs {
#[clap(long, conflicts_with = "index_url", conflicts_with = "extra_index_url")]
no_index: bool,

/// Attempt to use `keyring` for authentication for index urls should be
/// used in conjunction with `--index-url` flag.
/// Attempt to use `keyring` for authentication for index urls
///
/// Unlike `pip`, `uv` will not retry with `keyring` after 401 status code.
/// Rather, `uv` will forcably try to use keyring when this flag is used.
/// Function's similar to `pip`'s `--keyring-provider subprocess` argument,
/// `uv` will try to use `keyring` via CLI when this flag is used.
#[clap(long, conflicts_with = "no_index")]
use_keyring: bool,

Expand Down Expand Up @@ -512,11 +511,10 @@ struct PipSyncArgs {
#[clap(long, conflicts_with = "index_url", conflicts_with = "extra_index_url")]
no_index: bool,

/// Attempt to use `keyring` for authentication for index urls should be
/// used in conjunction with `--index-url` flag.
/// Attempt to use `keyring` for authentication for index urls
///
/// Unlike `pip`, `uv` will not retry with `keyring` after 401 status code.
/// Rather, `uv` will forcably try to use keyring when this flag is used.
/// Function's similar to `pip`'s `--keyring-provider subprocess` argument,
/// `uv` will try to use `keyring` via CLI when this flag is used.
#[clap(long, conflicts_with = "no_index")]
use_keyring: bool,

Expand Down Expand Up @@ -760,11 +758,10 @@ struct PipInstallArgs {
#[clap(long, conflicts_with = "index_url", conflicts_with = "extra_index_url")]
no_index: bool,

/// Attempt to use `keyring` for authentication for index urls should be
/// used in conjunction with `--index-url` flag.
/// Attempt to use `keyring` for authentication for index urls
///
/// Unlike `pip`, `uv` will not retry with `keyring` after 401 status code.
/// Rather, `uv` will forcably try to use keyring when this flag is used.
/// Function's similar to `pip`'s `--keyring-provider subprocess` argument,
/// `uv` will try to use `keyring` via CLI when this flag is used.
#[clap(long, conflicts_with = "no_index")]
use_keyring: bool,

Expand Down Expand Up @@ -1169,11 +1166,10 @@ struct VenvArgs {
#[clap(long, conflicts_with = "index_url", conflicts_with = "extra_index_url")]
no_index: bool,

/// Attempt to use `keyring` for authentication for index urls should be
/// used in conjunction with `--index-url` flag.
/// Attempt to use `keyring` for authentication for index urls
///
/// Unlike `pip`, `uv` will not retry with `keyring` after 401 status code.
/// Rather, `uv` will forcably try to use keyring when this flag is used.
/// Function's similar to `pip`'s `--keyring-provider subprocess` argument,
/// `uv` will try to use `keyring` via CLI when this flag is used.
#[clap(long, conflicts_with = "no_index")]
use_keyring: bool,

Expand Down

0 comments on commit 4933953

Please sign in to comment.