Skip to content

Commit

Permalink
Merge pull request #14335 from MilhouseVH/fix_kodi-send_-a
Browse files Browse the repository at this point in the history
kodi-send: restore -a support broken by #13804
  • Loading branch information
notspiff committed Aug 22, 2018
2 parents fae4027 + 10cef61 commit 1cbdec1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/EventClients/Clients/KodiSend/kodi-send.py
Expand Up @@ -45,13 +45,13 @@ def usage():
print("\t--port=PORT\t\t\tChoose what PORT to connect to (default=9777)")
print("\t--keymap=KEYMAP\t\t\tChoose which KEYMAP to use for key presses (default=KB)")
print('\t--button=BUTTON\t\t\tSends a key press event to Kodi, this option can be added multiple times to create a macro')
print('\t--action=ACTION\t\t\tSends an action to XBMC, this option can be added multiple times to create a macro')
print('\t-a ACTION, --action=ACTION\tSends an action to XBMC, this option can be added multiple times to create a macro')
print('\t-d T, --delay=T\t\t\tWaits for T ms, this option can be added multiple times to create a macro')
pass

def main():
try:
opts, args = getopt.getopt(sys.argv[1:], "?pad:v", ["help", "host=", "port=", "keymap=", "button=", "action=", "delay="])
opts, args = getopt.getopt(sys.argv[1:], "?pa:d:v", ["help", "host=", "port=", "keymap=", "button=", "action=", "delay="])
except getopt.GetoptError as err:
# print help information and exit:
print(str(err)) # will print something like "option -a not recognized"
Expand Down

0 comments on commit 1cbdec1

Please sign in to comment.