Add filenames option

This commit is contained in:
Morgan Courbet 2017-06-26 21:42:27 +02:00
parent b2b0d5929a
commit ad0062a3bb
No known key found for this signature in database
GPG key ID: 467299D324A21B24

View file

@ -42,6 +42,7 @@ def _parse_arguments(argv=None):
choices=[m.optName for m in MixedLineEndingOption], choices=[m.optName for m in MixedLineEndingOption],
default='auto', default='auto',
help='Replace line ending with the specified. Default is "auto"') help='Replace line ending with the specified. Default is "auto"')
parser.add_argument('filenames', nargs='*', help='Filenames to fix')
parser.add_argument( parser.add_argument(
'-v', '-v',
'--verbose', '--verbose',
@ -59,7 +60,7 @@ def _parse_arguments(argv=None):
elif args.fix == 'lf': elif args.fix == 'lf':
fix = MixedLineEndingOption.LF fix = MixedLineEndingOption.LF
options = {'fix': fix, 'verbose': args.verbose} options = {'fix': fix, 'filenames': args.filenames, 'verbose': args.verbose}
return options return options