|
|
|
@ -11,8 +11,8 @@ parser = argparse.ArgumentParser()
|
|
|
|
|
def get_args():
|
|
|
|
|
parser.register('type', bool, strtobool)
|
|
|
|
|
|
|
|
|
|
config_dir = os.path.join(os.path.dirname(__file__), '../data/')
|
|
|
|
|
parser.add_argument('-c', '--config', default=config_dir, type=arghelper.extant_dir, metavar="DIR",
|
|
|
|
|
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",
|
|
|
|
|
dest="config_dir", help="Directory containing the configuration (default: %s)" % config_dir)
|
|
|
|
|
parser.add_argument('--no-update', default=False, type=bool, const=True, metavar="BOOL", nargs="?",
|
|
|
|
|
help="Disable update functionality (default: False)")
|
|
|
|
|