Fix default setting to be an array, otherwise the iterator works over

characters, not strings.
This commit is contained in:
Dispsylala 2019-10-30 01:05:58 +00:00
parent d5a8cda278
commit 5255e5fd13

View File

@ -87,8 +87,7 @@ def append_images(images, horizontal=True, xmargin=0, ymargin=0):
def main():
parser = argparse.ArgumentParser(description="This program emulates\
the pwnagotchi display")
parser.add_argument('--displays', help="Which displays to use.", nargs="+",
default="waveshare_2")
parser.add_argument('--displays', help="Which displays to use.", nargs="+", default=["waveshare_2"])
parser.add_argument('--lang', help="Language to use",
default="en")
parser.add_argument('--output', help="Path to output image (PNG)", default="preview.png")