Skip to content

Commit

Permalink
Rename --no-scrap-github-token => --no-discover-github-token
Browse files Browse the repository at this point in the history
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
  • Loading branch information
NobodyXu committed Mar 3, 2023
1 parent c8e420b commit 07dd41c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/bin/src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::{
ffi::OsString,
fmt, fs, iter,
num::{NonZeroU64, ParseIntError},
path::{Path, PathBuf},
path::PathBuf,
str::FromStr,
};

Expand Down Expand Up @@ -152,7 +152,7 @@ pub struct Args {
///
/// This option can be used to disable that behavior.
#[clap(help_heading = "Overrides", long)]
pub no_scrap_github_token: bool,
pub no_discover_github_token: bool,

/// Disable symlinking / versioned updates.
///
Expand Down Expand Up @@ -461,7 +461,7 @@ You cannot use --{option} and specify multiple packages at the same time. Do one
.exit()
}

if opts.github_token.is_none() && !opts.no_scrap_github_token {
if opts.github_token.is_none() && !opts.no_discover_github_token {
if let Some(github_token) = try_extract_from_git_credentials() {
opts.github_token = Some(github_token);
} else if let Ok(github_token) = gh_token::get() {
Expand Down

0 comments on commit 07dd41c

Please sign in to comment.