remove unwanted params from arguments 85/53285/1
authorthuva4 <tharma.thuva@gmail.com>
Thu, 8 Mar 2018 08:30:19 +0000 (14:00 +0530)
committerthuva4 <tharma.thuva@gmail.com>
Thu, 8 Mar 2018 08:30:19 +0000 (14:00 +0530)
Remove -name from GetOne and Delete
command arguments

Change-Id: I163444467e0bac95df2d11f5bddda6bc441c4c21
Signed-off-by: thuva4 <tharma.thuva@gmail.com>
testapi/testapi-client/testapiclient/pods.py

index c49f254..bad0c31 100644 (file)
@@ -35,10 +35,9 @@ class PodGetOne(command.ShowOne):
 
     def get_parser(self, prog_name):
         parser = super(PodGetOne, self).get_parser(prog_name)
-        parser.add_argument('-name',
+        parser.add_argument('name',
                             default='',
-                            help='Find pod using name',
-                            required=True)
+                            help='Find pod using name')
         return parser
 
     def take_action(self, parsed_args):
@@ -74,9 +73,8 @@ class PodDelete(command.Command):
 
     def get_parser(self, prog_name):
         parser = super(PodDelete, self).get_parser(prog_name)
-        parser.add_argument('-name',
+        parser.add_argument('name',
                             type=str,
-                            required=True,
                             help='Delete pods using name')
         return parser