summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Sirgo Rica <asirgo@soleta.eu>2024-03-04 10:01:03 +0100
committerAlejandro Sirgo Rica <asirgo@soleta.eu>2024-03-04 10:01:03 +0100
commit9a11fd834630545e0fc1d5c55fad6ff34c941f30 (patch)
tree23e83151d251483cb496651fc6db5cd5fab5a9c6
parentb242ee9f6e1f84d7cbc6114cac1bc5300fa3afcc (diff)
rename argument of 'restore' command to 'restore_obj'
The argument was called 'send_obj' probably due to copypaste. The rename aims to provide a better name for the command.
-rw-r--r--cli/cli.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/cli.py b/cli/cli.py
index a81ed07..81dd846 100644
--- a/cli/cli.py
+++ b/cli/cli.py
@@ -149,7 +149,7 @@ class OgCLI():
def restore(self, args):
choices = ['image']
parser = argparse.ArgumentParser(prog='ogcli restore')
- parser.add_argument('send_obj', choices=choices)
+ parser.add_argument('restore_obj', choices=choices)
if not args:
print('Missing restore subcommand', file=sys.stderr)
@@ -157,7 +157,7 @@ class OgCLI():
sys.exit(1)
parsed_args = parser.parse_args([args[0]])
- if parsed_args.send_obj == 'image':
+ if parsed_args.restore_obj == 'image':
OgImage.restore_image(self.rest, args[1:])
def create(self, args):