Correct --no-modify-profile (#206)

* Correct --no-modify-profile

* Correct env
This commit is contained in:
Ana Hobden 2023-01-20 12:08:34 -08:00 committed by GitHub
parent e81456673b
commit 9dbbc9b7be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -48,12 +48,11 @@ pub struct CommonSettings {
#[cfg_attr( #[cfg_attr(
feature = "cli", feature = "cli",
clap( clap(
long,
action(ArgAction::SetFalse), action(ArgAction::SetFalse),
default_value = "true", default_value = "true",
global = true, global = true,
env = "NIX_INSTALLER_NO_MODIFY_PROFILE", env = "NIX_INSTALLER_MODIFY_PROFILE",
name = "no-modify-profile" long = "no-modify-profile"
) )
)] )]
pub(crate) modify_profile: bool, pub(crate) modify_profile: bool,