Skip to content

Commit

Permalink
Merge 283399e into 3937cb1
Browse files Browse the repository at this point in the history
  • Loading branch information
speleo3 authored Dec 6, 2020
2 parents 3937cb1 + 283399e commit 42c3b8a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 2 additions & 3 deletions docs/source/command.rst
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,9 @@ protein-ligand complexes based in the 3D structure. The
specifying mutation labels which is used to modify
<filename> according to, e.g. N25R/N181D (default: None)

.. option:: -v VERSION_LABEL, --version VERSION_LABEL
.. option:: --version

specifying the sub-version of propka [Jan15/Dec19]
(default: Jan15)
show program's version number and exit

.. option:: -p PARAMETERS, --parameters PARAMETERS

Expand Down
5 changes: 3 additions & 2 deletions propka/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,8 @@ def build_parser(parser=None):
Argument `--generate-propka-input` has been removed as writing PROPKA
input files is no longer supported.
"""
import propka

if parser is not None:
group = parser.add_argument_group(title="PROPKA invocation options")
else:
Expand Down Expand Up @@ -241,8 +243,7 @@ def build_parser(parser=None):
help=("specifying mutation labels which is used to modify "
"<filename> according to, e.g. N25R/N181D"))
group.add_argument(
"-v", "--version", dest="version_label", default="Jan15",
help="specifying the sub-version of propka [Jan15/Dec19]")
"--version", action="version", version=f"%(prog)s {propka.__version__}")
group.add_argument(
"-p", "--parameters", dest="parameters",
default=pkg_resources.resource_filename(__name__, "propka.cfg"),
Expand Down

0 comments on commit 42c3b8a

Please sign in to comment.