forked from extern/nushell
remove the now deprecated exit --now
option
This commit is contained in:
parent
f27b9db6e3
commit
31b9c3f643
@ -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,
|
|
||||||
},
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user