hoffmangroup / segway

Application for semi-automated genomic annotation.
http://segway.hoffmanlab.org/
GNU General Public License v2.0
13 stars 7 forks source link

segway no longer output help #50

Closed EricR86 closed 8 years ago

EricR86 commented 8 years ago

Original report (BitBucket issue) by Sakura Tamaki (Bitbucket: Tamaki_Sakura).


xzeng[^_^]mhoffman7:/scratch/install/segway/default/segway$ segway
Traceback (most recent call last):
  File "/users/xzeng/.local/bin/segway", line 9, in <module>
    load_entry_point('segway==1.3.2.dev0', 'console_scripts', 'segway')()
  File "/users/xzeng/.local/lib/python2.7/site-packages/segway-1.3.2.dev0-py2.7.egg/segway/run.py", line 2834, in main
    options, args = parse_options(args)
  File "/users/xzeng/.local/lib/python2.7/site-packages/segway-1.3.2.dev0-py2.7.egg/segway/run.py", line 2823, in parse_options
    if args[0] == "train":
IndexError: list index out of range

It should output segway usage message, however.

I would expect something like:

if len(args) < 1:
        parser.error("Specify Training or Testing.")
EricR86 commented 8 years ago

Original comment by Sakura Tamaki (Bitbucket: Tamaki_Sakura).


EricR86 commented 8 years ago

Original comment by Eric Roberts (Bitbucket: ericr86, GitHub: ericr86).


EricR86 commented 8 years ago

Original comment by Eric Roberts (Bitbucket: ericr86, GitHub: ericr86).


Fixed in commit 857b4161325cc2a6b2228ec6b0d6d0d9eadd3492