Commit c921b071 authored by Lukas Jelonek's avatar Lukas Jelonek
Browse files

Fix bug: Help is not shown when running without any subcommand

parent 9139aefe
......@@ -9,6 +9,7 @@ import tempfile
def main():
parser = argparse.ArgumentParser(description='Make bioinformatic observations on aminoacid sequences')
parser.set_defaults(func=help)
subparsers = parser.add_subparsers()
info_parser = subparsers.add_parser('info')
......@@ -28,8 +29,12 @@ def main():
args = parser.parse_args()
config = load_config()
args.parser = parser
args.func(args, config)
def help(args, config):
args.parser.print_help()
def info(args, config):
show_analyses(config)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment