Merge "Change --session-id and --job-id to required"

This commit is contained in:
Jenkins
2016-12-01 14:26:20 +00:00
committed by Gerrit Code Review

View File

@@ -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