Lines Matching refs:options
48 def skiptype(options, prop):
51 if field not in options.fields:
53 if isgroup and "posixgroup" not in options.types and \
54 "smbgroup" not in options.types:
56 if not isgroup and "posixuser" not in options.types and \
57 "smbuser" not in options.types:
61 def new_entry(options, isgroup, domain, rid):
76 if typename.lower().replace(" ", "") not in options.types:
83 if not options.noname and rid < 1<<31:
102 def process_one_raw(acct, options, prop, elem):
109 if options.translate and domain:
121 v = new_entry(options, isgroup, domain, rid)
127 # options.translate is set.
130 if options.parsable:
182 (options, args) = parser.parse_args(sys.argv[2:])
187 options.fields = options.fields.split(",")
188 for f in options.fields:
192 options.types = options.types.split(",")
193 for t in options.types:
197 if not options.sortfields:
198 options.sortfields = [("-s", "type"), ("-s", "name")]
200 if "all" in options.types:
201 options.types = types[1:]
206 options.noname = True
217 if skiptype(options, prop):
220 process_one_raw(acct, options, prop, elem)
224 for (opt, field) in options.sortfields:
242 t = zfs.table.Table(options.fields, rjustfields)
245 t.printme(not options.noheaders)