remove the now deprecated exit --now option

This commit is contained in:
amtoine 2023-03-12 11:46:19 +01:00
parent f27b9db6e3
commit 31b9c3f643
No known key found for this signature in database
GPG Key ID: 37AAE9B486CFF1AB

View File

@ -19,11 +19,6 @@ impl Command for Exit {
SyntaxShape::Int, SyntaxShape::Int,
"Exit code to return immediately with", "Exit code to return immediately with",
) )
.switch(
"now",
"Exit out of all shells immediately (exiting Nu)",
Some('n'),
)
.category(Category::Shells) .category(Category::Shells)
} }
@ -48,10 +43,6 @@ impl Command for Exit {
std::process::exit(exit_code as i32); std::process::exit(exit_code as i32);
} }
if call.has_flag("now") {
std::process::exit(0);
}
std::process::exit(0); std::process::exit(0);
} }
@ -62,11 +53,6 @@ impl Command for Exit {
example: "exit", example: "exit",
result: None, result: None,
}, },
Example {
description: "Exit all shells (exiting Nu)",
example: "exit --now",
result: None,
},
] ]
} }
} }