Skip to content

Commit

Permalink
Change order of argument in spot command
Browse files Browse the repository at this point in the history
  • Loading branch information
jpjarnoux committed Feb 28, 2022
1 parent e7b8d45 commit 7622e33
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.2.73
1.2.74
6 changes: 3 additions & 3 deletions ppanggolin/RGP/spot.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,9 @@ def launch(args):

def spotSubparser(subparser):
parser = subparser.add_parser("spot", formatter_class=argparse.ArgumentDefaultsHelpFormatter)
required = parser.add_argument_group(title="Required arguments",
description="One of the following arguments is required :")
required.add_argument('-p', '--pangenome', required=True, type=str, help="The pangenome .h5 file")
optional = parser.add_argument_group(title="Optional arguments")
optional.add_argument('-o', '--output', required=False, type=str,
default="ppanggolin_output" + time.strftime("_DATE%Y-%m-%d_HOUR%H.%M.%S",
Expand Down Expand Up @@ -199,7 +202,4 @@ def spotSubparser(subparser):
optional.add_argument("--priority", required=False, action="store_true",
help=argparse.SUPPRESS) # This ensures compatibility with the old API
# but does not use the option
required = parser.add_argument_group(title="Required arguments",
description="One of the following arguments is required :")
required.add_argument('-p', '--pangenome', required=True, type=str, help="The pangenome .h5 file")
return parser

0 comments on commit 7622e33

Please sign in to comment.