Skip to content

Commit a21ed25

Browse files
author
Troy Melhase
committed
Added check for multiple input files and option parser error if more than 1. Closes natural#20.
1 parent 891270a commit a21ed25

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

java2python/bin/j2py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ def cli_options(argv):
103103
help='Write processing time to stderr',
104104
default=False, action='store_true')
105105
options, args = parser.parse_args(argv)
106+
if len(args) > 2:
107+
parser.error('Only one input file supported.')
106108
return options, args
107109

108110
if __name__ == '__main__':

0 commit comments

Comments
 (0)