From 2dddbf31af4a68ac5e5aa169a68dc12a270593ee Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Sun, 28 May 2023 10:26:23 -0500 Subject: [PATCH] try again --- src/viv/viv.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/viv/viv.py b/src/viv/viv.py index b41106f..ed70740 100755 --- a/src/viv/viv.py +++ b/src/viv/viv.py @@ -1166,10 +1166,11 @@ class Viv: bin = args.reqs[0] output = c.binparent / args.reqs[0] else: - error("please specify an explicit -b/--bin and -o/--output", code=1) + if not (args.bin and args.output): + error("please specify an explicit -b/--bin and -o/--output", code=1) - if args.output: - output = args.output + args.bin = bin + args.output = output if output.is_file(): error(f"{output} already exists...exiting", code=1)