From 3e820cf223506ca80cb937167ed24186f212a8b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20S=2E=20Martins?= Date: Fri, 3 Jun 2016 21:49:03 +0100 Subject: [PATCH] Consistency pass on the arguments. --- crossword_generator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crossword_generator.py b/crossword_generator.py index c4f1bd6..cc98183 100755 --- a/crossword_generator.py +++ b/crossword_generator.py @@ -605,11 +605,11 @@ def write_grid(grid, screen=False, out_file="table.tex", words=[]): if __name__ == "__main__": # Parse arguments parser = argparse.ArgumentParser(description='Generate a crossword puzzle.') - parser.add_argument('--word-file', type=str, + parser.add_argument('-f', type=str, default="words.txt", dest="word_file", help="A file containing words, one word per line.") - parser.add_argument('--dim', type=int, + parser.add_argument('-d', type=int, nargs="+", default=[20, 20], dest="dim",