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)
commit5460b87e3e425b9c8d814c39fc1fe842a2660e89
tree767ae6eb6ab5fc8cf1b742bc9f221ec84477c63b
parenta970de04e6e8c3cd4c95c1fc716b8c44658efe6a
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