2014-10-27 16:29:04 -06:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
import argparse
|
|
|
|
import paths
|
2015-01-18 17:19:39 -06:00
|
|
|
import logging
|
2015-04-19 18:10:34 -05:00
|
|
|
import application
|
2015-01-18 17:19:39 -06:00
|
|
|
log = logging.getLogger("commandlineLauncher")
|
2014-10-27 16:29:04 -06:00
|
|
|
|
2015-04-19 18:10:34 -05:00
|
|
|
parser = argparse.ArgumentParser(description=application.name+" command line launcher")
|
|
|
|
parser.add_argument("-d", "--data-directory", action="store", dest="directory", help="Specifies the directory where " + application.name + " saves userdata.")
|
2014-10-27 16:29:04 -06:00
|
|
|
args = parser.parse_args()
|
2016-01-19 12:52:09 -06:00
|
|
|
log.debug("Starting " + application.name + " with the following arguments: directory = %s" % (args.directory))
|
|
|
|
if args.directory != None: paths.directory = args.directory
|