From 8c4420c0052ed374ce1692e5dfc8e4c67367a397 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Wed, 29 Jun 2022 11:51:11 -0400 Subject: refactor: rename `RootConfig` to `CliOptions` (#15007) --- cli/args/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cli/args') diff --git a/cli/args/mod.rs b/cli/args/mod.rs index 757c6a8f4..17bbf0603 100644 --- a/cli/args/mod.rs +++ b/cli/args/mod.rs @@ -44,16 +44,16 @@ use crate::file_fetcher::CacheSetting; use crate::lockfile::Lockfile; use crate::version; -/// Holds the common configuration used by many sub commands +/// Holds the common options used by many sub commands /// and provides some helper function for creating common objects. -pub struct RootConfig { - // the source of the configuration is a detail the rest of the +pub struct CliOptions { + // the source of the options is a detail the rest of the // application need not concern itself with, so keep these private flags: Flags, maybe_config_file: Option, } -impl RootConfig { +impl CliOptions { pub fn from_flags(flags: Flags) -> Result { if let Some(insecure_allowlist) = flags.unsafely_ignore_certificate_errors.as_ref() -- cgit v1.2.3