Minor wordpw changes
This commit is contained in:
parent
5cfb873d4d
commit
148683f8f0
4
wordpw
4
wordpw
|
@ -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()]
|
||||||
|
|
Loading…
Reference in a new issue