Lines Matching refs:options
49 def skiptype(options, prop):
52 if field not in options.fields:
54 if isgroup and "posixgroup" not in options.types and \
55 "smbgroup" not in options.types:
57 if not isgroup and "posixuser" not in options.types and \
58 "smbuser" not in options.types:
62 def new_entry(options, isgroup, domain, rid):
77 if typename.lower().replace(" ", "") not in options.types:
84 if not options.noname and rid < 1<<31:
103 def process_one_raw(acct, options, prop, elem):
110 if options.translate and domain:
122 v = new_entry(options, isgroup, domain, rid)
128 # options.translate is set.
131 if options.parsable:
183 (options, args) = parser.parse_args(sys.argv[2:])
188 options.fields = options.fields.split(",")
189 for f in options.fields:
193 options.types = options.types.split(",")
194 for t in options.types:
198 if not options.sortfields:
199 options.sortfields = [("-s", "type"), ("-s", "name")]
201 if "all" in options.types:
202 options.types = types[1:]
207 options.noname = True
218 if skiptype(options, prop):
221 process_one_raw(acct, options, prop, elem)
225 for (opt, field) in options.sortfields:
243 t = zfs.table.Table(options.fields, rjustfields)
246 t.printme(not options.noheaders)