comparison frontends/src/jp/cmd_profile.py @ 2174:0c32ff2f64c4

jp (profile/list): fixed options help
author Goffi <goffi@goffi.org>
date Thu, 09 Mar 2017 00:06:13 +0100
parents 255830fdb80b
children e42c6c131b52
comparison
equal deleted inserted replaced
2173:c9c5fdd54ca5 2174:0c32ff2f64c4
108 def __init__(self, host): 108 def __init__(self, host):
109 super(ProfileList, self).__init__(host, 'list', use_profile=False, use_output='list', help=(u'list profiles')) 109 super(ProfileList, self).__init__(host, 'list', use_profile=False, use_output='list', help=(u'list profiles'))
110 110
111 def add_parser_options(self): 111 def add_parser_options(self):
112 group = self.parser.add_mutually_exclusive_group() 112 group = self.parser.add_mutually_exclusive_group()
113 group.add_argument('-c', '--clients', action='store_true', help=_(u'the password of the profile')) 113 group.add_argument('-c', '--clients', action='store_true', help=_(u'get clients profiles only'))
114 group.add_argument('-C', '--components', action='store_true', help=(u'the password of the profile')) 114 group.add_argument('-C', '--components', action='store_true', help=(u'get components profiles only'))
115 115
116 116
117 def start(self): 117 def start(self):
118 if self.args.clients: 118 if self.args.clients:
119 clients, components = True, False 119 clients, components = True, False