diff options
Diffstat (limited to 'examples/help_grep.py')
| -rw-r--r-- | examples/help_grep.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/help_grep.py b/examples/help_grep.py index a476d9c..20a4911 100644 --- a/examples/help_grep.py +++ b/examples/help_grep.py @@ -38,8 +38,7 @@ import re import sys if len(sys.argv) < 3: - print("Pass the regex with SCRIPT_ARG=<regex>") - sys.exit(1) + sys.exit("Pass the regex with SCRIPT_ARG=<regex>") search = re.compile(sys.argv[2], re.IGNORECASE).search |
