try again

This commit is contained in:
Daylin Morgan 2023-05-28 10:26:23 -05:00
parent e7476a6863
commit 2dddbf31af
Signed by: daylin
GPG key ID: C1E52E7DD81DF79F

View file

@ -1166,10 +1166,11 @@ class Viv:
bin = args.reqs[0] bin = args.reqs[0]
output = c.binparent / args.reqs[0] output = c.binparent / args.reqs[0]
else: else:
if not (args.bin and args.output):
error("please specify an explicit -b/--bin and -o/--output", code=1) error("please specify an explicit -b/--bin and -o/--output", code=1)
if args.output: args.bin = bin
output = args.output args.output = output
if output.is_file(): if output.is_file():
error(f"{output} already exists...exiting", code=1) error(f"{output} already exists...exiting", code=1)