Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions utils/gyb.py
Original file line number Diff line number Diff line change
Expand Up @@ -1208,13 +1208,12 @@ def succ(a):
help='''Bindings to be set in the template's execution context''')

parser.add_argument(
'file', type=argparse.FileType('rb'),
'file', type=argparse.FileType(),
help='Path to GYB template file (defaults to stdin)', nargs='?',
default=sys.stdin) # FIXME: stdin not binary mode on Windows
default=sys.stdin)
parser.add_argument(
'-o', dest='target', type=argparse.FileType('wb'),
help='Output file (defaults to stdout)',
default=sys.stdout) # FIXME: stdout not binary mode on Windows
'-o', dest='target', type=argparse.FileType('w'),
help='Output file (defaults to stdout)', default=sys.stdout)
parser.add_argument(
'--test', action='store_true',
default=False, help='Run a self-test')
Expand Down