# HG changeset patch # User Goffi # Date 1509489018 -3600 # Node ID f9167c053475d2f8789ff9a5bbfcd93e809feb0f # Parent 40e6e779a25356912038d7697a34c783a5777fd7 jp (ad-hoc/run): node is now a positional argument diff -r 40e6e779a253 -r f9167c053475 frontends/src/jp/cmd_adhoc.py --- a/frontends/src/jp/cmd_adhoc.py Tue Oct 31 23:29:45 2017 +0100 +++ b/frontends/src/jp/cmd_adhoc.py Tue Oct 31 23:30:18 2017 +0100 @@ -72,7 +72,6 @@ self.need_loop=True def add_parser_options(self): - self.parser.add_argument('-n', '--node', type=base.unicode_decoder, default=u'', help=_(u"node of the command (default: list commands)")) self.parser.add_argument('-j', '--jid', type=base.unicode_decoder, default=u'', help=_(u"jid of the service (default: profile's server")) self.parser.add_argument("-S", "--submit", action='append_const', const=xmlui_manager.SUBMIT, dest='workflow', help=_(u"submit form/page")) self.parser.add_argument("-f", @@ -83,6 +82,7 @@ dest='workflow', metavar=(u"KEY", u"VALUE"), help=_(u"field value")) + self.parser.add_argument('node', type=base.unicode_decoder, nargs='?', default=u'', help=_(u"node of the command (default: list commands)")) def adHocRunCb(self, xmlui_raw): xmlui = xmlui_manager.create(self.host, xmlui_raw)