Skip to content

Commit ce80335

Browse files
authored
use dash instead of stdin as default (#158)
1 parent 0044ece commit ce80335

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

vcstool/commands/import_.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def get_parser():
4747
description='Import the list of repositories', prog='vcs import')
4848
group = parser.add_argument_group('"import" command parameters')
4949
group.add_argument(
50-
'--input', type=file_or_url_type, default=sys.stdin,
50+
'--input', type=file_or_url_type, default='-',
5151
help='Where to read YAML from', metavar='FILE_OR_URL')
5252
group.add_argument(
5353
'--force', action='store_true', default=False,

vcstool/commands/validate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def get_parser():
3131
description='Validate a repositories file', prog='vcs validate')
3232
group = parser.add_argument_group('"validate" command parameters')
3333
group.add_argument(
34-
'--input', type=argparse.FileType('r'), default=sys.stdin)
34+
'--input', type=argparse.FileType('r'), default='-')
3535
group.add_argument(
3636
'--retry', type=int, metavar='N', default=2,
3737
help='Retry commands requiring network access N times on failure')

0 commit comments

Comments
 (0)