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:
@@ -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]))
|
||||
|
||||
Reference in New Issue
Block a user