Use wild::args() and add wild as a dependency (#3739)

This commit is contained in:
Agriya Khetarpal 2023-03-26 20:02:45 +05:30 committed by GitHub
parent a66481ed28
commit c0befb4670
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 1 deletions

View file

@ -23,7 +23,7 @@ static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
static GLOBAL: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;
pub fn main() -> ExitCode {
let mut args: Vec<_> = std::env::args().collect();
let mut args: Vec<_> = wild::args().collect();
// Clap doesn't support default subcommands but we want to run `check` by
// default for convenience and backwards-compatibility, so we just