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": {