powerline/scripts/powerline-config
ZyX fadd1eec17 Move all parser definitions to powerline.commands.*.get_argparser()
Reasoning: they will be easier to reach there. It will also be possible to use
specific ArgumentParser class that will just collect data for sphinx.
2014-10-25 22:03:33 +04:00

23 lines
585 B
Python
Executable File

#!/usr/bin/env python
# vim:fileencoding=utf-8:noet
from __future__ import (unicode_literals, division, absolute_import, print_function)
try:
from powerline.commands.config import get_argparser
except ImportError:
import sys
import os
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(os.path.realpath(__file__)))))
from powerline.commands.config import get_argparser
import powerline.bindings.config as config
if __name__ == '__main__':
parser = get_argparser()
args = parser.parse_args()
pl = config.create_powerline_logger(args)
args.function(pl, args)