Lines Matching refs:FLAGS
52 FLAGS = flags.FLAGS variable
315 if not [f for f in useful_flags if FLAGS.get(f, None) is not None]:
317 print FLAGS.MainModuleHelp()
320 if FLAGS.avg and FLAGS.avg < 0:
324 mon = Monsoon(device=FLAGS.device, serialno=FLAGS.serialno)
326 if FLAGS.voltage is not None:
327 if FLAGS.ramp is not None:
328 mon.RampVoltage(mon.start_voltage, FLAGS.voltage)
330 mon.SetVoltage(FLAGS.voltage)
332 if FLAGS.current is not None:
333 mon.SetMaxCurrent(FLAGS.current)
335 if FLAGS.status:
339 if FLAGS.usbpassthrough:
340 if FLAGS.usbpassthrough == 'off':
342 elif FLAGS.usbpassthrough == 'on':
344 elif FLAGS.usbpassthrough == 'auto':
347 sys.exit('bad passthrough flag: %s' % FLAGS.usbpassthrough)
349 if FLAGS.samples:
367 while emitted < FLAGS.samples or FLAGS.samples == -1:
369 need = (native_hz - offset + FLAGS.hz - 1) / FLAGS.hz
377 offset += need * FLAGS.hz
381 if FLAGS.timestamp: print int(time.time()),
383 if FLAGS.avg:
385 if len(history_deque) > FLAGS.avg: history_deque.pop()
422 main(FLAGS(sys.argv))