summaryrefslogtreecommitdiffstats
path: root/cli/cli.py
diff options
context:
space:
mode:
Diffstat (limited to 'cli/cli.py')
-rw-r--r--cli/cli.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/cli/cli.py b/cli/cli.py
index 01e15eb..49b3930 100644
--- a/cli/cli.py
+++ b/cli/cli.py
@@ -58,3 +58,12 @@ class OgCLI():
OgModes.list_available_modes(self.rest)
elif args.item == 'scopes':
OgScope.list_scopes(self.rest)
+
+ def set(self, args):
+ choices = ['modes']
+ parser = argparse.ArgumentParser()
+ parser.add_argument('item', choices=choices)
+ parsed_args = parser.parse_args([args[0]])
+
+ if parsed_args.item == 'modes':
+ OgModes.set_modes(self.rest, args[1:])