Skip to content

Commit

Permalink
Small help message fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
gareth-palmer committed Jun 22, 2021
1 parent 1c3873b commit 72ea150
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 20 deletions.
8 changes: 4 additions & 4 deletions cgiexecute
Original file line number Diff line number Diff line change
Expand Up @@ -113,17 +113,17 @@ def main():

if help:
print('Usage: ' + os.path.basename(sys.argv[0]) + ' [OPTIONS] URL[@PRIORITY]...\n'
'Send CGI Execute URLs to a Cisco IP Phone\n'
'Send CGI Execute URLs to a Cisco IP Phone.\n'
'\n'
' -h, --host HOST host name or IP-address of the phone\n'
' -h, --host HOST host name or IP address of the phone\n'
' -t, --timeout TIMEOUT request timeout in seconds (default 10)\n'
' -u, --username USERNAME authentication username\n'
' -p, --password PASSWORD authentication password\n'
' -H, --help print this help and exit\n'
'\n'
'Up to 3 URLs may be specified\n'
'Up to 3 URLs may be specified.\n'
'URL is one of Dial:, EditDial:, Key:, SoftKey:, Init:, Play:, Display:, http: or https:\n'
'Optional PRIORITY is either 0 (immediately), 1 (when idle) or 2 (only if idle)\n')
'Optional PRIORITY is either 0 (immediately), 1 (when idle) or 2 (only if idle).\n')

return

Expand Down
6 changes: 3 additions & 3 deletions mediastream
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ def main():
raise ipaddress.AddressValueError

except ipaddress.AddressValueError:
raise ProgramError(f'Invalid multicast IP-address: {multicast_address}')
raise ProgramError(f'Invalid multicast IP address: {multicast_address}')

multicast_address = multicast_address.compressed

Expand Down Expand Up @@ -331,11 +331,11 @@ def main():

if help:
print('Usage: ' + os.path.basename(sys.argv[0]) + ' -f FILE [OPTIONS] TARGET-HOST...\n'
'Stream media to one or more Cisco IP Phones\n'
'Stream media to one or more Cisco IP Phones.\n'
'\n'
' -f, --file FILE .wav file to stream\n'
' -t, --timeout TIMEOUT request timeout in seconds (default 3)\n'
' -m, --multicast IP-ADDRESS multicast the stream instead of using multiple unicast streams\n'
' -m, --multicast ADDRESS multicast the stream instead of using multiple unicast streams\n'
' -P, --port PORT destination port on phone (default 20480)\n'
' -v, --volume VOLUME volume percent (1-100) on phone\n'
' -c, --codec CODEC g711 or g722 (default g711)\n'
Expand Down
6 changes: 3 additions & 3 deletions screenshot
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,15 @@ def main():

if help:
print('Usage: ' + os.path.basename(sys.argv[0]) + ' [OPTIONS] SCREEN-SHOT\n'
'Download a desktop screenshot from a Cisco IP Phone\n'
'Download a desktop screenshot from a Cisco IP Phone.\n'
'\n'
' -h, --host HOST host name or IP-address of the phone\n'
' -h, --host HOST host name or IP address of the phone\n'
' -t, --timeout TIMEOUT request timeout in seconds (default 10)\n'
' -u, --username USERNAME authentication username\n'
' -p, --password PASSWORD authentication password\n'
' -H, --help print this help and exit\n'
'\n'
'SCREEN-SHOT is the path where the image will be saved\n')
'SCREEN-SHOT is the path where the image will be saved.\n')

return

Expand Down
8 changes: 4 additions & 4 deletions setbackground
Original file line number Diff line number Diff line change
Expand Up @@ -87,16 +87,16 @@ def main():

if help:
print('Usage: ' + os.path.basename(sys.argv[0]) + ' [OPTIONS] IMAGE ICON\n'
'Set the background image on a Cisco IP Phone\n'
'Set the background image on a Cisco IP Phone.\n'
'\n'
' -h, --host HOST host name or IP-address of the phone\n'
' -h, --host HOST host name or IP address of the phone\n'
' -t, --timeout TIMEOUT request timeout in seconds (default 10)\n'
' -u, --username USERNAME authentication username\n'
' -p, --password PASSWORD authentication password\n'
' -H, --help print this help and exit\n'
'\n'
'IMAGE and ICON are either an http: or https: URL\n'
'ICON is the thumbnail preview of the image\n')
'IMAGE and ICON are either an http: or https: URL.\n'
'ICON is the thumbnail preview of the image.\n')

return

Expand Down
6 changes: 3 additions & 3 deletions setringtone
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,15 @@ def main():

if help:
print('Usage: ' + os.path.basename(sys.argv[0]) + ' [OPTIONS] RING-TONE\n'
'Set the ring-tone on a Cisco IP Phone\n'
'Set the ring-tone on a Cisco IP Phone.\n'
'\n'
' -h, --host HOST host name or IP-address of the phone\n'
' -h, --host HOST host name or IP address of the phone\n'
' -t, --timeout TIMEOUT request timeout in seconds (default 10)\n'
' -u, --username USERNAME authentication username\n'
' -p, --password PASSWORD authentication password\n'
' -H, --help print this help and exit\n'
'\n'
'RING-TONE is either an http: or https: URL\n')
'RING-TONE is either an http: or https: URL.\n')

return

Expand Down
6 changes: 3 additions & 3 deletions xmlinfo
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,15 @@ def main():

if help:
print('Usage: ' + os.path.basename(sys.argv[0]) + ' [OPTIONS] INFO\n'
'Get status information as XML from a Cisco IP Phone\n'
'Get status information as XML from a Cisco IP Phone.\n'
'\n'
' -h, --host HOST host name or IP-address of the phone\n'
' -h, --host HOST host name or IP address of the phone\n'
' -t, --timeout TIMEOUT request timeout in seconds (default 10)\n'
' -u, --username USERNAME authentication username\n'
' -p, --password PASSWORD authentication password\n'
' -H, --help print this help and exit\n'
'\n'
'INFO is one of either line, call, settings or mode\n')
'INFO is one of either line, call, settings or mode.\n')

return

Expand Down

0 comments on commit 72ea150

Please sign in to comment.