slides-alpha: Fix single file mode arg processing
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
This commit is contained in:
parent
df86ac515d
commit
19496a7183
|
@ -150,8 +150,8 @@ def main():
|
|||
|
||||
elif opts.input.is_file():
|
||||
# Single file
|
||||
if p.exists():
|
||||
if not p.is_file():
|
||||
if opts.output.exists():
|
||||
if not opts.output.is_file():
|
||||
raise RuntimeError("Output path already exists and is not a file")
|
||||
elif not opts.force:
|
||||
raise RuntimeError("Output path already exists")
|
||||
|
|
Loading…
Reference in New Issue