Lines Matching refs:cmd
71 def error(text, cmd=None):
83 if cmd:
84 text_nows = "{0}: {1}".format(cmd, text_nows)
93 def usage(usage_error=None, cmd=None, retcode=EXIT_BADOPT):
98 error(usage_error, cmd=cmd)
174 "<value>'."), cmd="create-repository")
184 error(e, cmd="create-repository")
190 error(e, cmd="create-repository")
209 usage(_("only -e or -n may be specified"), cmd="open")
212 usage(_("open requires one package name"), cmd="open")
239 usage(_("only -e or -n may be specified"), cmd="open")
242 usage(_("append requires one package name"), cmd="open")
277 "$PKG_TRANS_ID."), cmd="close")
295 cmd="add")
298 usage(_("No arguments specified for subcommand."), cmd="add")
304 cmd="add")
348 "using -s."), cmd="publish")
356 error(e, cmd="publish")
367 error(e, cmd="publish")
392 cmd="publish")
401 cmd="publish")
450 action), cmd="publish")
497 cmd="include")
510 error(e, cmd="include")
521 error(e, cmd="include")
545 cmd="include")
568 str(a)), cmd="include")
633 cmd="import")
645 action), cmd="import")
651 error(e, cmd="import")
656 cmd="import")
689 cmd="generate")
700 error(e, cmd="generate")
705 cmd="generate")
717 cmd="refresh-index")
724 error(e, cmd="refresh-index")
788 "using -s."), cmd=subcommand)
824 error(warn, cmd=subcommand)
830 error(err, cmd=subcommand)
833 error(e, cmd=subcommand)
836 usage(_("illegal {cmd} option -- {opt}").format(
837 cmd=subcommand, opt=e.opt))