def Args(parser): """Register flags for this command. Args: parser: argparse.ArgumentParser to register arguments with. """ job_utils.ArgsForJobRef(parser)
def Args(parser): """Register flags for this command. Args: parser: argparse.ArgumentParser to register arguments with. """ job_utils.ArgsForJobRef(parser) parser.add_argument( '--full', action='store_const', const=job_utils.JOB_VIEW_ALL, default=job_utils.JOB_VIEW_SUMMARY, help='Retrieve the full Job rather than the summary view')
def Args(parser): """Register flags for this command.""" job_utils.ArgsForJobRef(parser) parser.add_argument( '--changed-after', type=time_util.ParseTimeArg, help='Only display metrics that have changed after the given time') parser.add_argument( '--hide-committed', default=False, action='store_true', help='If true, hide committed values.') parser.add_argument( '--tentative', default=False, action='store_true', help='If true, display tentative values.')
def Args(parser): """Register flags for this command. Args: parser: argparse.ArgumentParser to register arguments with. """ job_utils.ArgsForJobRef(parser) parser.add_argument('--environment', action='store_true', help='If present, the environment will be listed.') parser.add_argument('--steps', action='store_true', help='If present, the steps will be listed.')
def Args(parser): job_utils.ArgsForJobRef(parser) parser.add_argument( '--after', type=time_util.ParseTimeArg, help='Only display messages logged after the given time.') parser.add_argument( '--before', type=time_util.ParseTimeArg, help='Only display messages logged before the given time.') parser.add_argument( '--importance', choices=['debug', 'detailed', 'warning', 'error'], help='Minimum importance a message must have to be displayed', default='warning')