comparison frontends/src/jp/base.py @ 823:300b4de701a6

jp: short option for progress is now -P instead of -g, so -g can be used for groups
author Goffi <goffi@goffi.org>
date Mon, 17 Feb 2014 18:57:09 +0100
parents c39117d00f35
children 241f6baa6687
comparison
equal deleted inserted replaced
822:30ed86ea1c82 823:300b4de701a6
112 profile_parent.add_argument("-p", "--profile", action="store", type=str, default='@DEFAULT@', help=_("Use PROFILE profile key (default: %(default)s)")) 112 profile_parent.add_argument("-p", "--profile", action="store", type=str, default='@DEFAULT@', help=_("Use PROFILE profile key (default: %(default)s)"))
113 profile_parent.add_argument("-c", "--connect", action="store_true", help=_("Connect the profile before doing anything else")) 113 profile_parent.add_argument("-c", "--connect", action="store_true", help=_("Connect the profile before doing anything else"))
114 114
115 progress_parent = self.parents['progress'] = argparse.ArgumentParser(add_help=False) 115 progress_parent = self.parents['progress'] = argparse.ArgumentParser(add_help=False)
116 if progressbar: 116 if progressbar:
117 progress_parent.add_argument("-g", "--progress", action="store_true", help=_("Show progress bar")) 117 progress_parent.add_argument("-P", "--progress", action="store_true", help=_("Show progress bar"))
118 118
119 def add_parser_options(self): 119 def add_parser_options(self):
120 self.parser.add_argument('--version', action='version', version=("%(name)s %(version)s %(copyleft)s" % {'name': prog_name, 'version': self.version, 'copyleft': copyleft})) 120 self.parser.add_argument('--version', action='version', version=("%(name)s %(version)s %(copyleft)s" % {'name': prog_name, 'version': self.version, 'copyleft': copyleft}))
121 121
122 def import_commands(self): 122 def import_commands(self):