List --killMessage at the end

Although argparse should be smart enough to handle this in any order, 
it's generally easier for us poor humans to read the arguments if the 
unstructured one is the last argument. Re-order the listing to make this 
clearer.
This commit is contained in:
Landon Abney 2018-06-16 22:26:58 -07:00
parent 342284173b
commit 2116082fd7
No known key found for this signature in database
GPG Key ID: 15320D3C4A506996

View File

@ -31,9 +31,8 @@ Taultulli > Settings > Notification Agents > New Script > Script Arguments:
Select: Playback Start, Playback Pause
Arguments: --jbop SELECTOR --userId {user_id} --username {username}
--sessionId {session_id}
--sessionId {session_id} --notify notifierID
--killMessage Your message here. No quotes.
--notify notifierID
Save
Close
@ -176,11 +175,11 @@ if __name__ == "__main__":
help='The username of the person streaming.')
parser.add_argument('--sessionId', required=True,
help='The unique identifier for the stream.')
parser.add_argument('--killMessage', nargs='+',
help='Message to send to user whose stream is killed.')
parser.add_argument('--notify', type=int,
help='Notification Agent ID number to Agent to send ' +
'notification.')
parser.add_argument('--killMessage', nargs='+',
help='Message to send to user whose stream is killed.')
opts = parser.parse_args()