Lines Matching refs:parser
133 def args_to_perms(parser, options, who, perms):
168 parser.error(fmt % w)
196 parser.error(_("invalid user/group %s") % w)
274 parser.print_help()
278 parser.exit("zfs: error: " + msg)
280 parser.exit()
300 parser = optparse.OptionParser(usage=u, prog="zfs")
302 parser.add_option("-l", action="store_true", dest="local",
304 parser.add_option("-d", action="store_true", dest="descend",
306 parser.add_option("-u", action="store_true", dest="user",
308 parser.add_option("-g", action="store_true", dest="group",
310 parser.add_option("-e", action="store_true", dest="everyone",
312 parser.add_option("-c", action="store_true", dest="create",
314 parser.add_option("-s", action="store_true", dest="set", help=sstr)
316 parser.add_option("-r", action="store_true", dest="recursive",
338 (options, args) = parser.parse_args(sys.argv[2:])
342 parser.error(_("-u, -g, and -e are mutually exclusive"))
356 parser.error(_("invalid option combined with -s"))
358 parser.error(_("invalid set name: missing '@' prefix"))
365 parser.error(_("invalid option combined with -c"))
372 parser.error(_("invalid option combined with -e"))
384 d = args_to_perms(parser, options, who, perms)
391 parser.error(_("set %s is not defined") % p)