ui: add --no-config

This commit is contained in:
rr-
2018-11-08 13:09:37 +01:00
parent 6c2fed9d40
commit 78e39e639e
2 changed files with 14 additions and 3 deletions
+10 -1
View File
@@ -11,7 +11,16 @@ SAVE_PATH = Path(xdg.XDG_CONFIG_HOME) / "pqcli" / "save.dat"
def parse_args() -> argparse.Namespace:
parser = argparse.ArgumentParser(prog="pqcli")
parser.add_argument("--cheats", help="???", action="store_true")
parser.add_argument(
"--no-config",
dest="use_config",
action="store_false",
help=(
"Don't load or save configuration files from $XDG_CONFIG_HOME "
"(player data will still be saved)"
),
)
parser.add_argument("--cheats", action="store_true", help="???")
return parser.parse_args()