comparison sat_frontends/jp/cmd_pubsub.py @ 3325:7ebda4b54170

jp (file/share): added commands to manage affiliations and configuration + documentation
author Goffi <goffi@goffi.org>
date Sat, 01 Aug 2020 16:25:50 +0200
parents 77177b13ff54
children f30b238d9c45
comparison
equal deleted inserted replaced
3324:b57b5e42e894 3325:7ebda4b54170
413 help=_("set affiliations (for node owner)"), 413 help=_("set affiliations (for node owner)"),
414 ) 414 )
415 415
416 def add_parser_options(self): 416 def add_parser_options(self):
417 # XXX: we use optional argument syntax for a required one because list of list of 2 elements 417 # XXX: we use optional argument syntax for a required one because list of list of 2 elements
418 # (uses to construct dicts) don't work with positional arguments 418 # (used to construct dicts) don't work with positional arguments
419 self.parser.add_argument( 419 self.parser.add_argument(
420 "-a", 420 "-a",
421 "--affiliation", 421 "--affiliation",
422 dest="affiliations", 422 dest="affiliations",
423 metavar=("JID", "AFFILIATION"), 423 metavar=("JID", "AFFILIATION"),