Lines Matching refs:arguments

136 def _include_status(status, arguments):  argument
152 return arguments.working
154 return arguments.broken
157 def _print_host_summaries(history_list, arguments): argument
171 if not _include_status(status, arguments):
196 def _print_hosts(history_list, arguments): argument
211 if not _include_status(status, arguments):
214 if arguments.full_history:
217 elif arguments.diagnosis:
222 def _validate_time_range(arguments): argument
237 if (arguments.duration is not None and
238 arguments.since is not None and arguments.until is not None):
242 if (arguments.until is None and (arguments.since is None or
243 arguments.duration is None)):
244 arguments.until = int(time.time())
245 if arguments.since is None:
246 if arguments.duration is None:
247 arguments.duration = _DEFAULT_DURATION
248 arguments.since = (arguments.until -
249 arguments.duration * 60 * 60)
250 elif arguments.until is None:
251 arguments.until = (arguments.since +
252 arguments.duration * 60 * 60)
255 def _get_host_histories(afe, arguments): argument
275 for hostname in arguments.hostnames:
278 afe, hostname, arguments.since, arguments.until)
290 def _validate_host_list(afe, arguments): argument
311 if arguments.board or arguments.pool:
312 if arguments.hostnames:
317 afe, arguments.since, arguments.until,
318 board=arguments.board, pool=arguments.pool)
320 histories = _get_host_histories(afe, arguments)
327 def _validate_format_options(arguments): argument
340 if (not arguments.oneline and not arguments.diagnosis and
341 not arguments.full_history):
342 arguments.oneline = (not arguments.working and
343 not arguments.broken)
344 if not arguments.working and not arguments.broken:
345 arguments.working = True
346 arguments.broken = True
349 def _validate_command(afe, arguments): argument
369 _validate_time_range(arguments)
370 _validate_format_options(arguments)
371 return _validate_host_list(afe, arguments)
432 arguments = parser.parse_args(argv[1:])
433 return arguments
442 arguments = _parse_command(argv)
443 afe = frontend.AFE(server=arguments.web)
444 history_list = _validate_command(afe, arguments)
445 if arguments.oneline:
446 _print_host_summaries(history_list, arguments)
448 _print_hosts(history_list, arguments)