MicronOxford / BeamDelta

Alignment tool
GNU General Public License v3.0
5 stars 7 forks source link

duplicated checking for command line arguments #9

Closed carandraug closed 4 years ago

carandraug commented 4 years ago

Ian Dobbie wrote:

help is generated by both the main function and by argparser. I think we should get rid of the help generated by main unless there is some corner case I don't know about.

carandraug commented 4 years ago

I tracked this down to b42ff5036f0e . It added a new __main__ because, I think, setuptools entry points do not call the functions with the command line arguments. I'm also guessing the duplicated input arg checking and help text was just an accident.

carandraug commented 4 years ago

Now fixed. The __main__() function remains but it simply calls main() so there's no duplicated help text and input checking.