Lines Matching refs:cmd

94 def error(text, cmd=None):
97 if cmd:
98 text = "{0}: {1}".format(cmd, text)
130 def usage(usage_error=None, cmd=None, retcode=2, full=False):
136 error(usage_error, cmd=cmd)
232 cmd=subcommand)
237 "using -s."), cmd=subcommand)
247 error(str(e), cmd=subcommand)
289 "for this operation."), cmd=subcommand)
302 usage(_("No repository location specified."), cmd=subcommand)
346 usage(_("No repository location specified."), cmd=subcommand)
349 "for this operation."), cmd=subcommand)
353 cmd=subcommand)
359 cmd=subcommand)
389 ", ".join(existing)), cmd=subcommand)
412 usage(_("No repository location specified."), cmd=subcommand)
415 "for this operation."), cmd=subcommand)
419 cmd=subcommand)
428 "\n ".join(inv_pfxs)), cmd=subcommand)
440 "{0}").format("\n ".join(noexisting)), cmd=subcommand)
492 cmd=subcommand)
496 cmd=subcommand)
502 usage(_("No repository location specified."), cmd=subcommand)
505 "for this operation."), cmd=subcommand)
546 "using -s."), cmd=subcommand)
624 cmd=subcommand)
659 error(err_msg, cmd=subcommand)
777 cmd=subcommand)
814 usage(_("command does not take operands"), cmd=subcommand)
819 "using -s."), cmd=subcommand)
885 cmd=subcommand)
922 "using -s."), cmd=subcommand)
1023 cmd=subcommand)
1030 cmd=subcommand)
1092 "using -s."), cmd=subcommand)
1202 error(_("no matching publishers found"), cmd=subcommand)
1254 arg), cmd=subcommand)
1268 usage(_("command does not take operands"), cmd=subcommand)
1277 "using -s."), cmd=subcommand)
1303 arg), cmd=subcommand)
1317 usage(_("command does not take operands"), cmd=subcommand)
1326 "using -s."), cmd=subcommand)
1412 "using -s."), cmd=subcommand)
1428 "'{0}'").format(sname), cmd=subcommand)
1437 pname), cmd=subcommand)
1447 cmd=subcommand)
1524 usage(_("command does not take operands"), cmd=subcommand)
1662 arg), cmd=subcommand)
1674 sr.verify_default_checks)), cmd=subcommand)
1679 usage(_("command does not take operands"), cmd=subcommand)
1684 "using -s."), cmd=subcommand)
1688 "for this operation."), cmd=subcommand)
1693 "verification is disabled."), cmd=subcommand)
1758 arg), cmd=subcommand)
1762 usage(_("command does not take operands"), cmd=subcommand)
1767 "using -s."), cmd=subcommand)
1771 "for this operation."), cmd=subcommand)
2188 "-s").format(conf_type), cmd=subcommand)
2198 "specified"), cmd=subcommand)
2210 arg), cmd=subcommand)
2219 usage(_("command does not take any operands"), cmd=subcommand)
2222 usage(_("-q and -v can not be combined"), cmd=subcommand)
2227 "using -s."), cmd=subcommand)
2232 "provided using -s."), cmd=subcommand)
2304 usage(_("illegal option -- {0}").format(e.opt), cmd=subcommand)