From 0b8af9f0345799eb37ef631256549fb2207fc558 Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Sat, 18 Jan 2020 17:15:38 -0800 Subject: [PATCH] Minor changes --- amanuensis/cli/user.py | 6 ++++-- amanuensis/resources/lexicon.json | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/amanuensis/cli/user.py b/amanuensis/cli/user.py index 17218ec..7ac77d0 100644 --- a/amanuensis/cli/user.py +++ b/amanuensis/cli/user.py @@ -70,9 +70,11 @@ def command_list(args): print("{0} {1} ({2})".format(user['uid'], user['displayname'], user['username'])) @requires_username -@add_argument("--get", metavar="PATHSPEC", dest="get", +@add_argument( + "--get", metavar="PATHSPEC", dest="get", nargs="?", const=CONFIG_GET_ROOT_VALUE, help="Get the value of a config key") -@add_argument("--set", metavar=("PATHSPEC", "VALUE"), dest="set", +@add_argument( + "--set", metavar=("PATHSPEC", "VALUE"), dest="set", nargs=2, help="Set the value of a config key") def command_config(args): """ diff --git a/amanuensis/resources/lexicon.json b/amanuensis/resources/lexicon.json index 0be684d..c0b428e 100644 --- a/amanuensis/resources/lexicon.json +++ b/amanuensis/resources/lexicon.json @@ -11,7 +11,7 @@ "current": null, "start": 1, "max": 8, - "index": { + "assigned_index": { } }, "join": {