From fef7e37443f1a4b120b20fcd12e6538b267c7306 Mon Sep 17 00:00:00 2001 From: ache Date: Fri, 18 Dec 2020 09:57:43 +0100 Subject: Fix argument name --- dicofr.py | 3 +++ download/download.py | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/dicofr.py b/dicofr.py index 399c632..720e239 100755 --- a/dicofr.py +++ b/dicofr.py @@ -131,6 +131,9 @@ if __name__ == '__main__': if arg.wordList: r = call(['/usr/bin/env', 'python', f'{DIR_PATH}/download/download.py', '--download', '--output', dico, '--word-list', arg.wordList]) else: + print(['/usr/bin/env', 'python', + f'{DIR_PATH}/download/download.py', '--download', '--output', + dico]) r = call(['/usr/bin/env', 'python', f'{DIR_PATH}/download/download.py', '--download', '--output', dico]) exit(r) diff --git a/download/download.py b/download/download.py index 6939c59..18a60fe 100755 --- a/download/download.py +++ b/download/download.py @@ -33,10 +33,10 @@ def unbz2(file): if __name__ == '__main__': parser = argparse.ArgumentParser(description='Download and create the database') - parser.add_argument('-o', '--out', dest='outputF', action='store', + parser.add_argument('-o', '--output', dest='outputF', action='store', help='the output, the database filename', default='dfr.db') - parser.add_argument('-i', '--in', dest='dumpF', action='store', + parser.add_argument('-i', '--input', dest='dumpF', action='store', help='the input dump file\'s filename', default='') parser.add_argument('-l', '--word-list', dest='wordList', action='store', -- cgit v1.2.3