From 7085b048deb047579ea0b738af5f912ce4144416 Mon Sep 17 00:00:00 2001 From: Nicolas F Date: Mon, 18 Mar 2019 19:36:24 +0100 Subject: [PATCH] overviewer: fix shell quoting check in edge case If you supply an option that can't possibly be a world or an output but isn't recognised, Overviewer would barf. --- overviewer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/overviewer.py b/overviewer.py index 653216d..7f2f851 100755 --- a/overviewer.py +++ b/overviewer.py @@ -133,7 +133,7 @@ def main(): args, unknowns = parser.parse_known_args() # Check for possible shell quoting issues - if len(unknowns) > 0: + if len(unknowns) > 0 and args.world and args.output: possible_mistakes = [] for i in range(len(unknowns) + 1): possible_mistakes.append(" ".join([args.world, args.output] + unknowns[:i]))