updated reamde and language files and args

This commit is contained in:
deadvey
2026-03-30 00:34:54 +01:00
parent 17e77c6372
commit 2859b3fbd5
9 changed files with 733 additions and 26 deletions

14
args.py
View File

@@ -9,12 +9,14 @@ def handle_arguments(arguments, config):
config['language'] = arguments[index+2]
case '--mode'|'-m':
config['mode'] = arguments[index+2]
try:
config['mode_modifier'] = int(arguments[index+3])
except ValueError:
config['mode_modifier'] = arguments[index+3]
except IndexError:
config.pop('mode_modifier',None)
case '--words'|'-o':
config['words'] = int(arguments[index+2])
case '--time'|'-t':
config['time'] = int(arguments[index+2])
case '--filename'|'-f':
config['filename'] = arguments[index+2]
case '--quote'|'-q':
config['quoteid'] = arguments[index+2]
case '--list-languages'|'-i':
languages = os.listdir('languages')
for lang in languages: