Example #1
0
  def Args(parser):
    base.PAGE_SIZE_FLAG.RemoveFromParser(parser)
    base.LIMIT_FLAG.RemoveFromParser(parser)  # have our own --limit flag

    flags.AddQueueResourceFlag(parser, required=True, plural_tasks=True)
    flags.AddLocationFlag(parser)
    flags.AddTaskLeaseDurationFlag(parser, helptext="""\
        The number of seconds for the desired new lease duration for all tasks
        leased, starting from now. The maximum lease duration is 1 week.
        """)
    flags.AddFilterLeasedTasksFlag(parser)
    flags.AddMaxTasksToLeaseFlag(parser)

    list_formats.AddListTasksFormats(parser)
 def Args(parser):
   flags.AddTaskResourceArgs(parser, 'to renew the lease of')
   flags.AddLocationFlag(parser)
   flags.AddTaskLeaseScheduleTimeFlag(parser, 'renewing')
   flags.AddTaskLeaseDurationFlag(parser)