From dd5d3e8f43a4362aa2f5205773fa92ce1d39ea0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20BERTHO?= Date: Mon, 20 Nov 2017 23:27:33 +0100 Subject: [PATCH] Fixed argument parser bug MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: RĂ©mi BERTHO --- SSnR.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SSnR.py b/SSnR.py index ac8175a..6d04e4d 100755 --- a/SSnR.py +++ b/SSnR.py @@ -35,7 +35,7 @@ def main(): """ # Parse arguments parser = argparse.ArgumentParser(description='Search and replace tool for UTF-8 files', - prog='SSnR') + prog='SSnR', allow_abbrev=False) regex_group = parser.add_argument_group('Regular expression', "Search and replace regular expression") regex_group.add_argument('-ex', '--regex', help='Regex', required=True) @@ -59,7 +59,7 @@ def main(): required=False, action='store_true') option_group.add_argument('-igc', '--ignore_case', help='Ignore the case', required=False, action='store_true') - option_group.add_argument('-r', '--recursive', help='Use the regex input recrusivly in the folders', + option_group.add_argument('-r', '--recursive', help='Use the regex input recursivly in the folders', required=False, action='store_true') args = vars(parser.parse_args())