Minor wordpw changes

This commit is contained in:
Artemis Tosini 2018-08-23 12:24:36 +00:00
parent 5cfb873d4d
commit 148683f8f0
Signed by: artemist
GPG key ID: 094FBF1D31E6C1BB

4
wordpw
View file

@ -7,12 +7,12 @@ prefix = os.getenv('HOME') + '/.local/share/words/'
if len(sys.argv) == 2: if len(sys.argv) == 2:
ct = int(sys.argv[1]) ct = int(sys.argv[1])
wl = 'british' wl = 'default'
elif len(sys.argv) == 3: elif len(sys.argv) == 3:
ct = int(sys.argv[1]) ct = int(sys.argv[1])
wl = sys.argv[2] wl = sys.argv[2]
else: else:
print('Invalid arguments') print(f'Usage: {sys.argv[0]} nwords [wordlist]')
exit(1) exit(1)
words = [word.strip() for word in open(prefix + wl).readlines()] words = [word.strip() for word in open(prefix + wl).readlines()]