aboutsummaryrefslogtreecommitdiff
path: root/clint.py
diff options
context:
space:
mode:
authorMichael Reed <Pyrohh@users.noreply.github.com>2015-06-27 15:22:31 -0400
committerMichael Reed <Pyrohh@users.noreply.github.com>2015-06-27 15:22:31 -0400
commit3ec0ede3a805df1a107a0d68220cde1beeeba386 (patch)
tree8cf862f57f648921d2ce453129d16bdf14485008 /clint.py
parent0cfadce547d78c72cc6214cbe647993721b0eba8 (diff)
parent3c2fa1767b452a3445068a2806886c90bacbf543 (diff)
downloadrneovim-3ec0ede3a805df1a107a0d68220cde1beeeba386.tar.gz
rneovim-3ec0ede3a805df1a107a0d68220cde1beeeba386.tar.bz2
rneovim-3ec0ede3a805df1a107a0d68220cde1beeeba386.zip
Merge pull request #2904 from Pyrohh/clint
[RFC] clint.py stuff Reviewed-by: Florian Walch <florian@fwalch.com>
Diffstat (limited to 'clint.py')
-rwxr-xr-xclint.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/clint.py b/clint.py
index ccf1c11c3d..097b54f1c1 100755
--- a/clint.py
+++ b/clint.py
@@ -3070,8 +3070,6 @@ def ProcessFile(filename, vlevel, extra_check_functions=[]):
'One or more unexpected \\r (^M) found;'
'better to use only a \\n')
- sys.stderr.write('Done processing %s\n' % filename)
-
def PrintUsage(message):
"""Prints a brief usage string and exits, optionally with an error message.
@@ -3079,11 +3077,12 @@ def PrintUsage(message):
Args:
message: The optional error message.
"""
- sys.stderr.write(_USAGE)
if message:
+ sys.stderr.write(_USAGE)
sys.exit('\nFATAL ERROR: ' + message)
else:
- sys.exit(1)
+ sys.stdout.write(_USAGE)
+ sys.exit(0)
def PrintCategories():
@@ -3091,7 +3090,7 @@ def PrintCategories():
These are the categories used to filter messages via --filter.
"""
- sys.stderr.write(''.join(' %s\n' % cat for cat in _ERROR_CATEGORIES))
+ sys.stdout.write(''.join(' %s\n' % cat for cat in _ERROR_CATEGORIES))
sys.exit(0)