2013-03-09 13:16:00 +01:00
|
|
|
#!/usr/bin/env python
|
2013-04-13 16:51:49 +02:00
|
|
|
# vim:fileencoding=utf-8:noet
|
2014-08-31 20:55:26 +02:00
|
|
|
|
2013-03-09 13:16:00 +01:00
|
|
|
'''Powerline configuration checker.'''
|
2014-08-31 20:55:26 +02:00
|
|
|
|
|
|
|
from __future__ import (unicode_literals, division, absolute_import, print_function)
|
|
|
|
|
2013-03-09 13:16:00 +01:00
|
|
|
import argparse
|
|
|
|
import sys
|
|
|
|
|
2014-08-31 20:55:26 +02:00
|
|
|
from powerline.lint import check
|
|
|
|
|
2013-03-09 13:16:00 +01:00
|
|
|
|
|
|
|
parser = argparse.ArgumentParser(description=__doc__)
|
2014-08-03 20:20:01 +02:00
|
|
|
parser.add_argument('-p', '--config_path', action='append', metavar='PATH')
|
2013-11-02 21:54:32 +01:00
|
|
|
parser.add_argument('-d', '--debug', action='store_const', const=True)
|
2013-03-09 13:16:00 +01:00
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
args = parser.parse_args()
|
2013-11-02 21:54:32 +01:00
|
|
|
sys.exit(check(args.config_path, args.debug))
|