Skip to content

Commit 5c56b04

Browse files
committed
fixes
1 parent 3d59556 commit 5c56b04

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

20_password/password.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ def get_args():
3737

3838
parser.add_argument('-m',
3939
'--min_word_len',
40-
metavar='mininum',
40+
metavar='minimum',
4141
type=int,
4242
default=3,
4343
help='Minimum word length')
4444

4545
parser.add_argument('-x',
4646
'--max_word_len',
47-
metavar='maximumm',
47+
metavar='maximum',
4848
type=int,
4949
default=6,
5050
help='Maximum word length')

20_password/solution.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def get_args():
1717

1818
parser.add_argument('file',
1919
metavar='FILE',
20-
type=argparse.FileType('r'),
20+
type=argparse.FileType('rt'),
2121
nargs='+',
2222
help='Input file(s)')
2323

@@ -37,14 +37,14 @@ def get_args():
3737

3838
parser.add_argument('-m',
3939
'--min_word_len',
40-
metavar='mininum',
40+
metavar='minimum',
4141
type=int,
4242
default=3,
4343
help='Minimum word length')
4444

4545
parser.add_argument('-x',
4646
'--max_word_len',
47-
metavar='maximumm',
47+
metavar='maximum',
4848
type=int,
4949
default=6,
5050
help='Maximum word length')

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy