Skip to content

Commit

Permalink
Fixed bug in argparse code and bumped version.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromekelleher committed Nov 9, 2015
1 parent 16b686c commit 9715e1e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion msprime/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@

from msprime.trees import * # NOQA

__version__ = '0.1.5a1'
__version__ = '0.1.5a2'
4 changes: 3 additions & 1 deletion msprime/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,9 @@ def get_msp_parser():
parser.add_argument(
"-V", "--version", action='version',
version='%(prog)s {}'.format(msprime.__version__))
subparsers = parser.add_subparsers()
# This is required to get uniform behaviour in Python2 and Python3
subparsers = parser.add_subparsers(dest="subcommand")
subparsers.required = True

simulate_parser = subparsers.add_parser(
"simulate",
Expand Down

0 comments on commit 9715e1e

Please sign in to comment.