Make clean a standalone command

This commit is contained in:
Charlie Marsh 2022-12-30 15:20:18 -05:00
parent c9aa7b9308
commit a2bf3916f3
1 changed files with 1 additions and 3 deletions

View File

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