Skip to content

Commit

Permalink
Merge pull request #161 from cgat-developers/fix-restore-single-argum…
Browse files Browse the repository at this point in the history
…ent-return

restore retval issue when using argparse, version 0.6.13
  • Loading branch information
AndreasHeger authored May 19, 2022
2 parents 9198312 + c1bb1fe commit 0710ccb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion cgatcore/experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -1062,6 +1062,7 @@ def start(parser=None,
(global_options, global_args) = parser.parse_args(argv[1:])

opt1, opt2 = global_options, global_args
retval = (opt1, opt2)

# Argparse options
else:
Expand Down Expand Up @@ -1222,6 +1223,7 @@ def start(parser=None,
opt1, opt2 = global_args, unknown
else:
opt1, opt2 = global_args, None
retval = opt1

_setup_seed(opt1)
_setup_pipes(opt1, add_pipe_options)
Expand All @@ -1231,7 +1233,7 @@ def start(parser=None,
logger.info(get_header())
logger.info(get_params(opt1))

return opt1, opt2
return retval


def stop(logger=None):
Expand Down
2 changes: 1 addition & 1 deletion cgatcore/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.6.12"
__version__ = "0.6.13"

0 comments on commit 0710ccb

Please sign in to comment.