Skip to content

Commit 5634feb

Browse files
committed
Using %(default)s in argparse
1 parent 0c3e882 commit 5634feb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui24rsc/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,11 @@ def main(argv=None):
171171
parser.add_argument('file_in', metavar='FILE_IN', type=str,
172172
nargs='?', default='-',
173173
help='Input file. If set to "-" then stdin is used '
174-
'(default: -)')
174+
'(default: %(default)s)')
175175
parser.add_argument('file_out', metavar='FILE_OUT', type=str,
176176
nargs='?', default='-',
177177
help='Output file. If set to "-" then stdout is used '
178-
'(default: -)')
178+
'(default: %(default)s)')
179179

180180
parser.add_argument('-j', '--json', action='store_true',
181181
help='If present, the output format will be forced to '

0 commit comments

Comments
 (0)