summaryrefslogtreecommitdiffstats
path: root/cli
diff options
context:
space:
mode:
authorAlejandro Sirgo Rica <asirgo@soleta.eu>2024-09-12 13:03:14 +0200
committerAlejandro Sirgo Rica <asirgo@soleta.eu>2024-09-12 13:06:02 +0200
commit8f5b709212aa1ea28e85a0367747976cf81e0f3a (patch)
treeee232e314044764f7ef872c3d41084af697566b8 /cli
parent175a38606ace0f14b538da2e613aaf9421b174e6 (diff)
cli: rename ogcli list scopes to ogcli list scope
Use the word "scope" to keep the format coherent with the other commands.
Diffstat (limited to 'cli')
-rw-r--r--cli/cli.py4
-rw-r--r--cli/objects/scopes.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/cli/cli.py b/cli/cli.py
index ed65a4f..c3accdd 100644
--- a/cli/cli.py
+++ b/cli/cli.py
@@ -76,7 +76,7 @@ class OgCLI():
self.rest = OgREST(cfg['ip'], cfg['port'], cfg['api_token'])
def list(self, args):
- choices = ['clients', 'scopes', 'modes', 'hardware',
+ choices = ['clients', 'scope', 'modes', 'hardware',
'client', 'images', 'disks', 'servers', 'repos', 'live']
parser = argparse.ArgumentParser(prog='ogcli list')
parser.add_argument('item', choices=choices)
@@ -95,7 +95,7 @@ class OgCLI():
OgClient.list_client_hardware(self.rest, args[1:])
elif parsed_args.item == 'modes':
OgModes.list_available_modes(self.rest)
- elif parsed_args.item == 'scopes':
+ elif parsed_args.item == 'scope':
OgScope.list_scopes(self.rest, args[1:])
elif parsed_args.item == 'images':
OgImage.list_images(self.rest)
diff --git a/cli/objects/scopes.py b/cli/objects/scopes.py
index d65af0a..7f70cdd 100644
--- a/cli/objects/scopes.py
+++ b/cli/objects/scopes.py
@@ -38,7 +38,7 @@ class OgScope():
@staticmethod
def list_scopes(rest, args):
- parser = argparse.ArgumentParser(prog='ogcli list scopes')
+ parser = argparse.ArgumentParser(prog='ogcli list scope')
parser.add_argument('--client-ip',
action='append',
default=[],