Add --threads

This commit is contained in:
Piero Toffanin 2022-07-15 12:12:20 -04:00
parent e4fe0e8919
commit 1dddcea794
3 changed files with 14 additions and 0 deletions

View file

@ -120,6 +120,13 @@ def get_args():
metavar="<comma-separated language codes>",
help="Set available languages (ar,de,en,es,fr,ga,hi,it,ja,ko,pt,ru,zh)",
)
parser.add_argument(
"--threads",
default=DEFARGS['THREADS'],
type=int,
metavar="<number of threads>",
help="Set number of threads (%(default)s)",
)
parser.add_argument(
"--suggestions", default=DEFARGS['SUGGESTIONS'], action="store_true", help="Allow user suggestions"
)
@ -154,6 +161,7 @@ def main():
host=args.host,
port=args.port,
url_scheme=url_scheme,
threads=args.threads
)