summaryrefslogtreecommitdiff
path: root/cli/args/mod.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2022-06-29 11:51:11 -0400
committerGitHub <noreply@github.com>2022-06-29 11:51:11 -0400
commit8c4420c0052ed374ce1692e5dfc8e4c67367a397 (patch)
tree1d09e18bc2402aafd771342347978997d3fea710 /cli/args/mod.rs
parent1328a562306eb16e7c429519cc92d82a1c451315 (diff)
refactor: rename `RootConfig` to `CliOptions` (#15007)
Diffstat (limited to 'cli/args/mod.rs')
-rw-r--r--cli/args/mod.rs8
1 files changed, 4 insertions, 4 deletions
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<ConfigFile>,
}
-impl RootConfig {
+impl CliOptions {
pub fn from_flags(flags: Flags) -> Result<Self, AnyError> {
if let Some(insecure_allowlist) =
flags.unsafely_ignore_certificate_errors.as_ref()