aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorache <ache@ache.one>2020-12-18 09:57:43 +0100
committerache <ache@ache.one>2020-12-18 09:57:43 +0100
commitfef7e37443f1a4b120b20fcd12e6538b267c7306 (patch)
tree3d63a949dd187ae9755fce4707c86b7bea61477d
parentCommand line parser (diff)
Fix argument name
-rwxr-xr-xdicofr.py3
-rwxr-xr-xdownload/download.py4
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',