Make clean a standalone command

This commit is contained in:
Charlie Marsh 2022-12-30 15:20:18 -05:00
parent c9aa7b9308
commit a2bf3916f3

View file

@ -92,9 +92,7 @@ pub(crate) fn inner_main() -> Result<ExitCode> {
}
if cli.clean {
commands::clean(&log_level)?;
if cli.files.is_empty() {
return Ok(ExitCode::SUCCESS);
}
return Ok(ExitCode::SUCCESS);
}
// Construct the "default" settings. These are used when no `pyproject.toml`