From 9dbbc9b7bea6656a67ae22908c41e716cf67cd89 Mon Sep 17 00:00:00 2001 From: Ana Hobden Date: Fri, 20 Jan 2023 12:08:34 -0800 Subject: [PATCH] Correct --no-modify-profile (#206) * Correct --no-modify-profile * Correct env --- src/settings.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/settings.rs b/src/settings.rs index d551346..474d09e 100644 --- a/src/settings.rs +++ b/src/settings.rs @@ -48,12 +48,11 @@ pub struct CommonSettings { #[cfg_attr( feature = "cli", clap( - long, action(ArgAction::SetFalse), default_value = "true", global = true, - env = "NIX_INSTALLER_NO_MODIFY_PROFILE", - name = "no-modify-profile" + env = "NIX_INSTALLER_MODIFY_PROFILE", + long = "no-modify-profile" ) )] pub(crate) modify_profile: bool,