Skip to content

Commit

Permalink
use dash instead of stdin as default (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
dirk-thomas authored Jul 1, 2020
1 parent 0044ece commit ce80335
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vcstool/commands/import_.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def get_parser():
description='Import the list of repositories', prog='vcs import')
group = parser.add_argument_group('"import" command parameters')
group.add_argument(
'--input', type=file_or_url_type, default=sys.stdin,
'--input', type=file_or_url_type, default='-',
help='Where to read YAML from', metavar='FILE_OR_URL')
group.add_argument(
'--force', action='store_true', default=False,
Expand Down
2 changes: 1 addition & 1 deletion vcstool/commands/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def get_parser():
description='Validate a repositories file', prog='vcs validate')
group = parser.add_argument_group('"validate" command parameters')
group.add_argument(
'--input', type=argparse.FileType('r'), default=sys.stdin)
'--input', type=argparse.FileType('r'), default='-')
group.add_argument(
'--retry', type=int, metavar='N', default=2,
help='Retry commands requiring network access N times on failure')
Expand Down

0 comments on commit ce80335

Please sign in to comment.