Fix typo with --config and --property args (#3658)
authorStavros Sachtouris <saxtouri@admin.grnet.gr>
Wed, 24 Apr 2013 12:31:58 +0000 (15:31 +0300)
committerStavros Sachtouris <saxtouri@admin.grnet.gr>
Wed, 24 Apr 2013 12:35:43 +0000 (15:35 +0300)
kamaki/cli/argument.py
kamaki/cli/commands/image.py

index 2cee3a0..9d31459 100644 (file)
@@ -169,7 +169,9 @@ class ConfigArgument(Argument):
     def get_groups(self):
         return self.value.apis()
 
-_config_arg = ConfigArgument(1, 'Path to configuration file', '-c, --config')
+_config_arg = ConfigArgument(
+    1, 'Path to configuration file',
+    ('-c', '--config'))
 
 
 class CmdLineConfigArgument(Argument):
index 0391aef..c99907d 100644 (file)
@@ -201,7 +201,7 @@ class image_register(_init_image):
         owner=ValueArgument('set image owner (admin only)', '--owner'),
         properties=KeyValueArgument(
             'add property in key=value form (can be repeated)',
-            ('-p, --property')),
+            ('-p', '--property')),
         is_public=FlagArgument('mark image as public', '--public'),
         size=IntArgument('set image size', '--size'),
         update=FlagArgument(