--clean-final implies --clean

It's never made sense to leave it out before; might as well introduce it.
This commit is contained in:
James R. Barlow
2019-02-07 17:08:08 -08:00
parent a6e7485da6
commit ae7844ad88
+2
View File
@@ -630,6 +630,8 @@ def _optional_program_recommended(name, version_fn, min_version, for_argument):
def check_options_preprocessing(options, log):
if options.clean_final:
options.clean = True
if options.unpaper_args and not options.clean:
raise argparse.ArgumentError(
None, "--clean is required for --unpaper-args"