Merge remote-tracking branch 'upstream/master' into nathan/strings
This commit is contained in:
8
propka/__main__.py
Normal file
8
propka/__main__.py
Normal file
@@ -0,0 +1,8 @@
|
||||
"""Allow the PROPKA package to be run as a program.
|
||||
|
||||
For example, `python -m propka`
|
||||
"""
|
||||
from .run import main
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -279,10 +279,10 @@ def build_parser(parser=None):
|
||||
return parser
|
||||
|
||||
|
||||
def loadOptions(args):
|
||||
"""Load the arguments parser with options.
|
||||
|
||||
NOTE - verbosity is set as soon as this function is invoked.
|
||||
def loadOptions(args=None):
|
||||
"""
|
||||
Load the arguments parser with options. Note that verbosity is set as soon
|
||||
as this function is invoked.
|
||||
|
||||
Arguments:
|
||||
args: list of arguments
|
||||
@@ -292,11 +292,8 @@ def loadOptions(args):
|
||||
# loading the parser
|
||||
parser = build_parser()
|
||||
# parsing and returning options and arguments
|
||||
if len(args) == 0:
|
||||
# command line
|
||||
options = parser.parse_args()
|
||||
else:
|
||||
options = parser.parse_args(args)
|
||||
options = parser.parse_args(args)
|
||||
|
||||
# adding specified filenames to arguments
|
||||
options.filenames.append(options.input_pdb)
|
||||
# Convert titrate_only string to a list of (chain, resnum) items:
|
||||
|
||||
Reference in New Issue
Block a user