Skip to content

Commit

Permalink
fix: Error with nargs in potentials cli
Browse files Browse the repository at this point in the history
  • Loading branch information
Parzival1918 committed Oct 5, 2023
1 parent 7931ee7 commit 605450c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pu_pjr/dir_stats/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def main():
parser.set_defaults(which="main")

parser.add_argument(
"--version", "-v", action="version", version="%(prog)s v0.18.0"
"--version", "-v", action="version", version="%(prog)s v0.19.0"
)

subparser = parser.add_subparsers(required=True)
Expand Down
6 changes: 3 additions & 3 deletions pu_pjr/force_fields_plotting/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def main():
parser.set_defaults(which="main")

parser.add_argument(
"--version", "-v", action="version", version="%(prog)s v0.18.0"
"--version", "-v", action="version", version="%(prog)s v0.19.0"
)

subparsers = parser.add_subparsers(title="subcommands", dest="which")
Expand Down Expand Up @@ -70,10 +70,10 @@ def main():
help = "File name to read arguments from, default 'potentials.pot'"
)
plot_parser.add_argument(
"potential_data", nargs="?",
"potential_data", nargs="*",
#metavar="kwargs",
help = "Force field data to plot POTENTIAL must be a valid field name and DATA"+
"must be valid keyword arguments for the potential."
" must be valid keyword arguments for the potential."
)

args = parser.parse_args()
Expand Down
2 changes: 1 addition & 1 deletion pu_pjr/plotting/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def main():
parser.set_defaults(which="main")

parser.add_argument(
"--version", "-v", action="version", version="%(prog)s v0.18.0"
"--version", "-v", action="version", version="%(prog)s v0.19.0"
)

# Sub-parser for the "xy" command
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pu-pjr"
version = "0.18.0"
version = "0.19.0"
description = "Personal utilities for coding and data analysis"
authors = ["Pedro Juan Royo <pedro.juan.royo@gmail.com>"]
readme = "README.md"
Expand Down

0 comments on commit 605450c

Please sign in to comment.