summaryrefslogtreecommitdiffstats
path: root/cli/objects/center.py
diff options
context:
space:
mode:
Diffstat (limited to 'cli/objects/center.py')
-rw-r--r--cli/objects/center.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/objects/center.py b/cli/objects/center.py
index 1869efd..2e851d3 100644
--- a/cli/objects/center.py
+++ b/cli/objects/center.py
@@ -8,14 +8,14 @@ class OgCenter():
nargs='?',
required=True,
help='Name of the center')
- parser.add_argument('--comment',
+ parser.add_argument('--desc',
nargs='?',
required=False,
help='(Optional) Provide a more detailed description of the center')
parsed_args = parser.parse_args(args)
payload = {'name': parsed_args.name}
- if parsed_args.comment:
- payload['comment'] = parsed_args.comment
+ if parsed_args.desc:
+ payload['comment'] = parsed_args.desc
rest.post('/center/add', payload=payload)
@staticmethod