feat(linter): add lint command

This commit is contained in:
GreasySlug 2024-05-27 01:04:27 +09:00
parent 1a0daed8a4
commit 6ef11887ed

View file

@ -288,6 +288,9 @@ impl ErgConfig {
"--check" => {
cfg.mode = ErgMode::FullCheck;
}
"--lint" => {
cfg.mode = ErgMode::Lint;
}
"--compile" | "--dump-as-pyc" => {
cfg.mode = ErgMode::Compile;
}