From 31b9c3f643d879b1a8336df63e0d3dc04d1071a1 Mon Sep 17 00:00:00 2001 From: amtoine Date: Sun, 12 Mar 2023 11:46:19 +0100 Subject: [PATCH] remove the now deprecated `exit --now` option --- crates/nu-command/src/shells/exit.rs | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/crates/nu-command/src/shells/exit.rs b/crates/nu-command/src/shells/exit.rs index effcaf935..f1c42294c 100644 --- a/crates/nu-command/src/shells/exit.rs +++ b/crates/nu-command/src/shells/exit.rs @@ -19,11 +19,6 @@ impl Command for Exit { SyntaxShape::Int, "Exit code to return immediately with", ) - .switch( - "now", - "Exit out of all shells immediately (exiting Nu)", - Some('n'), - ) .category(Category::Shells) } @@ -48,10 +43,6 @@ impl Command for Exit { std::process::exit(exit_code as i32); } - if call.has_flag("now") { - std::process::exit(0); - } - std::process::exit(0); } @@ -62,11 +53,6 @@ impl Command for Exit { example: "exit", result: None, }, - Example { - description: "Exit all shells (exiting Nu)", - example: "exit --now", - result: None, - }, ] } }