Mercurial > vixm
changeset 13:2ecc611d198f v0.11
Added more helpful strings for the help strings
author | Josef "Jeff" Sipek <jeffpc@josefsipek.net> |
---|---|
date | Sat, 19 Aug 2006 20:23:42 -0400 |
parents | b5370c42288b |
children | 2ca1ce7cb338 |
files | vixm/control.py vixm/ui.py |
diffstat | 2 files changed, 25 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/vixm/control.py Sat Aug 19 20:18:57 2006 -0400 +++ b/vixm/control.py Sat Aug 19 20:23:42 2006 -0400 @@ -28,7 +28,7 @@ def cmd_help(ui, start, stop, args): for c in args[0]: - print "\t%s" % (args[0][c][2],) + print " %s\t%s" % (args[0][c][2],args[0][c][3]) def do_list(ui, start, stop, number, args): # get the list id from the argument or default to
--- a/vixm/ui.py Sat Aug 19 20:18:57 2006 -0400 +++ b/vixm/ui.py Sat Aug 19 20:23:42 2006 -0400 @@ -109,17 +109,35 @@ # (function to call, range allowed, help str) self.cmdtable = { "q([!]){,1}": - (control.cmd_quit, False, "q[!]"), + (control.cmd_quit, + False, + "q[!]", + "quit"), "n( ([0-9]+)){,1}": - (control.cmd_number, True, "[range]n [playlistid]"), + (control.cmd_number, + True, + "[range]n [playlistid]", + "numbered display of lines in range in playlistid"), "l( ([0-9]+)){,1}": - (control.cmd_list, True, "[range]l [playlistid]"), + (control.cmd_list, + True, + "[range]l [playlistid]", + "list lines in range in playlistid"), "a ([0-9]+)": - (control.cmd_enqueue, False, "a [songid]"), + (control.cmd_enqueue, + False, + "a [songid]", + "add songid from default to priority"), "d ([0-9]+)": - (control.cmd_dequeue, False, "d [songid]"), + (control.cmd_dequeue, + False, + "d [songid]", + "remove songid from priority"), "h": - (control.cmd_help, False, "h"), + (control.cmd_help, + False, + "h", + "this help list"), } def enqueue(self, id):