pazz/alot — Issue #154: commands from commandline args
Author: pazz
Created: 2011-12-14 15:38:02+00:00
State: open
Labels: bug

we really want optional argparse subcommands here :/

pazz@megatron:~/projects/alot$ alot 'help help'
Traceback (most recent call last):
File "/usr/local/bin/alot", line 20, in
main()
File "/home/pazz/.local/lib/python2.7/site-packages/alot/init.py", line 104, in main
args.colours,
File "/home/pazz/.local/lib/python2.7/site-packages/alot/ui.py", line 110, in __init__
self.apply_command(initialcmd)
File "/home/pazz/.local/lib/python2.7/site-packages/alot/ui.py", line 454, in apply_command
cmd.apply(self)
File "/home/pazz/.local/lib/python2.7/site-packages/alot/commands/globals.py", line 408, in apply
ui.notify(parser.format_help(), block=True)
File "/home/pazz/.local/lib/python2.7/site-packages/alot/ui.py", line 368, in notify
self.update()
File "/home/pazz/.local/lib/python2.7/site-packages/alot/ui.py", line 405, in update
self.exit()
File "/home/pazz/.local/lib/python2.7/site-packages/alot/ui.py", line 192, in exit
reactor.stop()
File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 570, in stop
"Can't stop reactor that isn't running.")
twisted.internet.error.ReactorNotRunning: Can't stop reactor that isn't running.