blob: 1502bba15b69d53507189459c51f8b9f1183b696 [file] [log] [blame]
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright 2015 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from argparse import ArgumentParser
import graphyte
def main():
parser = ArgumentParser()
parser.add_argument('--config-file', dest='config_file', action='store',
type=str, help='The path of config file')
parser.add_argument('-v', '--verbose', dest='verbose', action='store_true',
help='Enable debug logging', default=False)
parser.add_argument('--log-file', dest='log_file', action='store',
type=str, help='The path of log file')
parser.add_argument('--result-file', dest='result_file', action='store',
type=str, help='The path of result file')
parser.add_argument('--quiet', dest='console_output',
action='store_false', default=True,
help='Not output to console')
options = parser.parse_args()
app = graphyte.Graphyte(**vars(options))
app.Run()
if __name__ == '__main__':
main()