Add better comment parsing to hooke.ui.commandline.
authorW. Trevor King <wking@drexel.edu>
Thu, 3 Jun 2010 13:59:51 +0000 (09:59 -0400)
committerW. Trevor King <wking@drexel.edu>
Thu, 3 Jun 2010 13:59:51 +0000 (09:59 -0400)
commit1629048d08b2cf78ab7b0d7935805b033f940845
tree767ae6eb6ab5fc8cf1b742bc9f221ec84477c63b
parentfdca6646e6eb455cf75a49c79e8fccf87d7e2a71
Add better comment parsing to hooke.ui.commandline.

The old implemtation only handled comments after valid function calls:
  hooke> load_playlist test # a comment
but failed on pure comments and in help
  hooke> # failing comment
  hooke> help # failing comment
The new implemation handles all of these.

I changed empty lines to no-ops (rather than repeating the last
commant), because explicit is better than implicit.
doc/tutorial.txt
hooke/ui/commandline.py