From 93194b9c6a517564c27d45eb2960d9d6d0580535 Mon Sep 17 00:00:00 2001 From: Morgan Courbet Date: Sun, 18 Jun 2017 12:31:22 +0200 Subject: [PATCH] Change --fix option from mixed_line_ending To make it easier to use in the program (single string instead of a list of strings) --- pre_commit_hooks/mixed_line_ending.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pre_commit_hooks/mixed_line_ending.py b/pre_commit_hooks/mixed_line_ending.py index 946ecf6..323708b 100644 --- a/pre_commit_hooks/mixed_line_ending.py +++ b/pre_commit_hooks/mixed_line_ending.py @@ -41,8 +41,7 @@ def _parse_arguments(argv=None): '--fix', choices=[m.optName for m in MixedLineEndingOption], default='auto', - help='Replace line ending with the specified. Default is "auto"', - nargs=1) + help='Replace line ending with the specified. Default is "auto"') parser.add_argument( '-v', '--verbose',