Skip to content
This repository was archived by the owner on Feb 1, 2024. It is now read-only.

Commit 9f9c956

Browse files
authored
Merge pull request #1115 from andrewsg/tasks-update
Add required flag on certain arguments to command-line tools
2 parents 6b19fe2 + fef4457 commit 9f9c956

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

samples/appengine/flexible/tasks/create_app_engine_queue_task.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,17 +80,20 @@ def create_task(project, queue, location, payload=None, in_seconds=None):
8080

8181
parser.add_argument(
8282
'--project',
83-
help='Project of the queue to add the task to.'
83+
help='Project of the queue to add the task to.',
84+
required=True,
8485
)
8586

8687
parser.add_argument(
8788
'--queue',
88-
help='ID (short name) of the queue to add the task to.'
89+
help='ID (short name) of the queue to add the task to.',
90+
required=True,
8991
)
9092

9193
parser.add_argument(
9294
'--location',
93-
help='Location of the queue to add the task to.'
95+
help='Location of the queue to add the task to.',
96+
required=True,
9497
)
9598

9699
parser.add_argument(

0 commit comments

Comments
 (0)