Lines Matching refs:options
66 def commands(options, command, args):
71 mydb = dbinit.MyDB(options)
103 source.host = options.host
104 source.db = options.db
105 source.passwd = options.passwd
106 source.user = options.user
110 if type(options.method) is str:
111 source.method = options.method
113 if options.runs is None:
116 rx = re.compile(options.runs)
245 commands(options, command, args)
247 if options.ticks:
248 if not options.graph:
249 print 'only displaying sample %s' % options.ticks
250 source.ticks = [ int(x) for x in options.ticks.split() ]
253 output = StatOutput(options.jobfile, source)
269 if options.graph:
270 output.graph(stat.name, options.graphdir)
272 output.display(stat.name, options.printmode)
280 proxy = ProxyGroup(system = source[options.system])
289 if options.graph:
290 output.graph(command, options.graphdir, proxy)
292 output.display(command, options.printmode)
416 options = Options()
417 options.host = None
418 options.db = None
419 options.passwd = ''
420 options.user = getpass.getuser()
421 options.runs = None
422 options.system = 'client'
423 options.method = None
424 options.graph = False
425 options.ticks = False
426 options.printmode = 'G'
428 options.jobfile = None
429 options.all = False
434 options.printmode = 'E'
436 options.printmode = 'F'
438 options.all = True
440 options.db = a
442 options.graph = True;
443 options.graphdir = a
445 options.host = a
451 options.method = a
453 options.passwd = getpass.getpass()
455 options.runs = a
457 options.user = a
459 options.system = a
461 options.ticks = a
465 options.jobfile = JobFile(jobfilename)
466 if not options.host:
467 options.host = options.jobfile.dbhost
468 if not options.db:
469 options.db = options.jobfile.statdb
471 if not options.host:
474 if not options.db:
484 commands(options, command, args)