From 2116082fd7f1a8095ce5f85927f0b3edbc3d6273 Mon Sep 17 00:00:00 2001 From: Landon Abney Date: Sat, 16 Jun 2018 22:26:58 -0700 Subject: [PATCH] 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. --- killstream/kill_stream.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/killstream/kill_stream.py b/killstream/kill_stream.py index a7ee28d..f6a856a 100644 --- a/killstream/kill_stream.py +++ b/killstream/kill_stream.py @@ -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()