Skip to content

Commit

Permalink
Use wild::args() and add wild as a dependency (#3739)
Browse files Browse the repository at this point in the history
  • Loading branch information
agriyakhetarpal authored Mar 26, 2023
1 parent a66481e commit c0befb4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
10 changes: 10 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions crates/ruff_cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ similar = { workspace = true }
strum = { workspace = true, features = [] }
textwrap = { workspace = true }
walkdir = { version = "2.3.2" }
wild = { version = "2" }

[dev-dependencies]
assert_cmd = { version = "2.0.8" }
Expand Down
2 changes: 1 addition & 1 deletion crates/ruff_cli/src/bin/ruff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c0befb4

Please sign in to comment.