Merge "Change --session-id and --job-id to required"
This commit is contained in:
@@ -145,9 +145,11 @@ class SessionAddJob(command.Command):
|
||||
parser = super(SessionAddJob, self).get_parser(prog_name)
|
||||
parser.add_argument('--session-id',
|
||||
dest='session_id',
|
||||
required=True,
|
||||
help='ID of the session')
|
||||
parser.add_argument('--job-id',
|
||||
dest='job_id',
|
||||
required=True,
|
||||
help='ID of the job to add')
|
||||
return parser
|
||||
|
||||
@@ -164,9 +166,11 @@ class SessionRemoveJob(command.Command):
|
||||
parser = super(SessionRemoveJob, self).get_parser(prog_name)
|
||||
parser.add_argument('--session-id',
|
||||
dest='session_id',
|
||||
required=True,
|
||||
help='ID of the session')
|
||||
parser.add_argument('--job-id',
|
||||
dest='job_id',
|
||||
required=True,
|
||||
help='ID of the job to add')
|
||||
return parser
|
||||
|
||||
|
||||
Reference in New Issue
Block a user