Removed duplicate add_help from argument parsers in cli/image and cli/network

This commit is contained in:
ahmadbilalkhalid 2020-01-03 18:42:20 +05:00
parent 3296e524cc
commit 344a957a3f
2 changed files with 2 additions and 2 deletions

View file

@ -15,7 +15,7 @@ class ImageParser(BaseParser):
p.add_argument('--image-store-name', default='image_store')
def list(self, **kwargs):
self.subparser.add_parser('list', add_help=False, **kwargs)
self.subparser.add_parser('list', **kwargs)
parser = ImageParser()

View file

@ -9,7 +9,7 @@ class NetworkParser(BaseParser):
super().__init__('network')
def create(self, **kwargs):
p = self.subparser.add_parser('create', add_help=False, parents=[get_otp_parser()], **kwargs)
p = self.subparser.add_parser('create', parents=[get_otp_parser()], **kwargs)
p.add_argument('--network-name', required=True)
p.add_argument('--network-type', required=True, dest='type')
p.add_argument('--user', action='store_true')