Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SOaAS
psot.repository
Commits
c921b071
Commit
c921b071
authored
Jul 27, 2017
by
Lukas Jelonek
Browse files
Fix bug: Help is not shown when running without any subcommand
parent
9139aefe
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin/psot
View file @
c921b071
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment