Remove unnecessary args testing.
Addresses https://github.com/jensengroup/propka-3.1/pull/47#discussion_r431224753
This commit is contained in:
@@ -232,16 +232,10 @@ def loadOptions(args=None):
|
||||
Returns:
|
||||
argparse namespace
|
||||
"""
|
||||
if args == None:
|
||||
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)
|
||||
|
||||
# adding specified filenames to arguments
|
||||
|
||||
Reference in New Issue
Block a user