Mercurial > libervia-backend
comparison frontends/src/jp/base.py @ 2151:fff88c33442f
jp (info/disco): added --node argument
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 12 Feb 2017 21:17:56 +0100 |
parents | be96beb7ca14 |
children | cee6561ad086 |
comparison
equal
deleted
inserted
replaced
2150:91347fe95384 | 2151:fff88c33442f |
---|---|
284 # we have a special case here as the start-session option is present only if connection is not needed, | 284 # we have a special case here as the start-session option is present only if connection is not needed, |
285 # so we create two similar parents, one with the option, the other one without it | 285 # so we create two similar parents, one with the option, the other one without it |
286 for parent_name in ('profile', 'profile_session'): | 286 for parent_name in ('profile', 'profile_session'): |
287 parent = self.parents[parent_name] = argparse.ArgumentParser(add_help=False) | 287 parent = self.parents[parent_name] = argparse.ArgumentParser(add_help=False) |
288 parent.add_argument("-p", "--profile", action="store", type=str, default='@DEFAULT@', help=_("Use PROFILE profile key (default: %(default)s)")) | 288 parent.add_argument("-p", "--profile", action="store", type=str, default='@DEFAULT@', help=_("Use PROFILE profile key (default: %(default)s)")) |
289 parent.add_argument("--pwd", action="store", type=unicode, default='', metavar='PASSWORD', help=_("Password used to connect profile, if necessary")) | 289 parent.add_argument("--pwd", action="store", type=unicode_decoder, default='', metavar='PASSWORD', help=_("Password used to connect profile, if necessary")) |
290 | 290 |
291 profile_parent, profile_session_parent = self.parents['profile'], self.parents['profile_session'] | 291 profile_parent, profile_session_parent = self.parents['profile'], self.parents['profile_session'] |
292 | 292 |
293 connect_short, connect_long, connect_action, connect_help = "-c", "--connect", "store_true", _(u"Connect the profile before doing anything else") | 293 connect_short, connect_long, connect_action, connect_help = "-c", "--connect", "store_true", _(u"Connect the profile before doing anything else") |
294 profile_parent.add_argument(connect_short, connect_long, action=connect_action, help=connect_help) | 294 profile_parent.add_argument(connect_short, connect_long, action=connect_action, help=connect_help) |