Exemple #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):
   list_formats.AddListTasksFormats(parser)
   flags.AddQueueResourceFlag(parser, plural_tasks=True)
   flags.AddLocationFlag(parser)
Exemple #3
0
 def Args(parser):
     list_formats.AddListTasksFormats(parser)
     flags.AddQueueResourceFlag(parser, plural_tasks=True)
     flags.AddLocationFlag(parser)
     base.PAGE_SIZE_FLAG.SetDefault(parser, _DEFAULT_PAGE_SIZE)