comparison frontends/src/jp/cmd_file.py @ 2375:4b521490bd8d

jp (file): typo
author Goffi <goffi@goffi.org>
date Mon, 16 Oct 2017 07:16:11 +0200
parents 3e168cde7a7d
children 8b37a62336c3
comparison
equal deleted inserted replaced
2374:686f84ebb670 2375:4b521490bd8d
197 self.host.bridge.launchAction(xmlui_id, xmlui_data, profile_key=profile) 197 self.host.bridge.launchAction(xmlui_id, xmlui_data, profile_key=profile)
198 198
199 def add_parser_options(self): 199 def add_parser_options(self):
200 self.parser.add_argument("jids", type=base.unicode_decoder, nargs="*", help=_(u'JIDs accepted (accept everything if none is specified)')) 200 self.parser.add_argument("jids", type=base.unicode_decoder, nargs="*", help=_(u'JIDs accepted (accept everything if none is specified)'))
201 self.parser.add_argument("-m", "--multiple", action="store_true", help=_(u"accept multiple files (you'll have to stop manually)")) 201 self.parser.add_argument("-m", "--multiple", action="store_true", help=_(u"accept multiple files (you'll have to stop manually)"))
202 self.parser.add_argument("-f", "--force", action="store_true", help=_(u"force overwritting of existing files (/!\\ name is choosed by sended)")) 202 self.parser.add_argument("-f", "--force", action="store_true", help=_(u"force overwritting of existing files (/!\\ name is choosed by sender)"))
203 self.parser.add_argument("--path", default='.', metavar='DIR', help=_(u"destination path (default: working directory)")) 203 self.parser.add_argument("--path", default='.', metavar='DIR', help=_(u"destination path (default: working directory)"))
204 204
205 def start(self): 205 def start(self):
206 self.bare_jids = [jid.JID(jid_).bare for jid_ in self.args.jids] 206 self.bare_jids = [jid.JID(jid_).bare for jid_ in self.args.jids]
207 self.path = os.path.abspath(self.args.path) 207 self.path = os.path.abspath(self.args.path)