|
|
@ -13,6 +13,8 @@ def get_args():
|
|
|
|
config_dir = os.path.realpath(os.path.join(os.path.dirname(__file__), '..', 'data'))
|
|
|
|
config_dir = os.path.realpath(os.path.join(os.path.dirname(__file__), '..', 'data'))
|
|
|
|
parser.add_argument('-c', '--config', default=config_dir, type=str, metavar="DIR",
|
|
|
|
parser.add_argument('-c', '--config', default=config_dir, type=str, metavar="DIR",
|
|
|
|
dest="config_dir", help="Directory containing the configuration (default: %s)" % config_dir)
|
|
|
|
dest="config_dir", help="Directory containing the configuration (default: %s)" % config_dir)
|
|
|
|
|
|
|
|
parser.add_argument('-p', '--port', type=int, metavar="PORT", dest="port",
|
|
|
|
|
|
|
|
help="Port number (default: 6767)")
|
|
|
|
parser.add_argument('--no-update', default=False, type=bool, const=True, metavar="BOOL", nargs="?",
|
|
|
|
parser.add_argument('--no-update', default=False, type=bool, const=True, metavar="BOOL", nargs="?",
|
|
|
|
help="Disable update functionality (default: False)")
|
|
|
|
help="Disable update functionality (default: False)")
|
|
|
|
parser.add_argument('--debug', default=False, type=bool, const=True, metavar="BOOL", nargs="?",
|
|
|
|
parser.add_argument('--debug', default=False, type=bool, const=True, metavar="BOOL", nargs="?",
|
|
|
|