0

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.
This commit is contained in:
Nicolas F
2019-03-18 19:36:24 +01:00
parent a533f3a396
commit 7085b048de

View File

@@ -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]))