mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
clint.py: don't print --help
output to stderr and exit 1
a) It's not an error b) It requires manual redirection of stderr into stdout ('2>&1') in order to be viewed with a pager, which it warrants given how long the help message is. Helped-by: Florian Walch <florian@fwalch.com>
This commit is contained in:
parent
0cfadce547
commit
ed6611a588
7
clint.py
7
clint.py
@ -3079,11 +3079,12 @@ def PrintUsage(message):
|
|||||||
Args:
|
Args:
|
||||||
message: The optional error message.
|
message: The optional error message.
|
||||||
"""
|
"""
|
||||||
sys.stderr.write(_USAGE)
|
|
||||||
if message:
|
if message:
|
||||||
|
sys.stderr.write(_USAGE)
|
||||||
sys.exit('\nFATAL ERROR: ' + message)
|
sys.exit('\nFATAL ERROR: ' + message)
|
||||||
else:
|
else:
|
||||||
sys.exit(1)
|
sys.stdout.write(_USAGE)
|
||||||
|
sys.exit(0)
|
||||||
|
|
||||||
|
|
||||||
def PrintCategories():
|
def PrintCategories():
|
||||||
@ -3091,7 +3092,7 @@ def PrintCategories():
|
|||||||
|
|
||||||
These are the categories used to filter messages via --filter.
|
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)
|
sys.exit(0)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user