Add default argument to loadOptions().

Fixes https://github.com/jensengroup/propka-3.1/issues/46
This commit is contained in:
Nathan Baker
2020-05-27 07:39:41 -07:00
parent 46ae3d8251
commit 959f978abb

View File

@@ -222,7 +222,7 @@ def build_parser(parser=None):
return parser
def loadOptions(args):
def loadOptions(args=None):
"""
Load the arguments parser with options. Note that verbosity is set as soon
as this function is invoked.
@@ -232,9 +232,8 @@ def loadOptions(args):
Returns:
argparse namespace
"""
# defining a 'usage' message
usage = "usage: %prog [options] filename"
if args == None:
args = []
# loading the parser
parser = build_parser()