mirror of
https://github.com/denoland/deno.git
synced 2025-08-03 18:38:33 +00:00
chore: upgrade clap to v4 (#17333)
This commit is contained in:
parent
8a4865c379
commit
33362b88c3
5 changed files with 768 additions and 948 deletions
|
@ -253,8 +253,8 @@ pub fn main() {
|
|||
let flags = match flags_from_vec(args) {
|
||||
Ok(flags) => flags,
|
||||
Err(err @ clap::Error { .. })
|
||||
if err.kind() == clap::ErrorKind::DisplayHelp
|
||||
|| err.kind() == clap::ErrorKind::DisplayVersion =>
|
||||
if err.kind() == clap::error::ErrorKind::DisplayHelp
|
||||
|| err.kind() == clap::error::ErrorKind::DisplayVersion =>
|
||||
{
|
||||
err.print().unwrap();
|
||||
std::process::exit(0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue