[minor] added call argument "parameter path"

This commit is contained in:
Marcel Paffrath 2023-02-23 11:50:38 +01:00
parent 9d9ced7c83
commit 477727018f

View File

@ -1364,7 +1364,9 @@ class StatusOther(Status):
if __name__ == '__main__': if __name__ == '__main__':
parser = argparse.ArgumentParser(description='Call survBot') parser = argparse.ArgumentParser(description='Call survBot')
parser.add_argument('-html', dest='html_path', default=None, help='filepath for HTML output') parser.add_argument('-html', dest='html_path', default=None, help='filepath for HTML output')
parser.add_argument('-parfile', dest='parfile', default='parameters.yaml',
help='parameter file (default: parameters.yaml)')
args = parser.parse_args() args = parser.parse_args()
survBot = SurveillanceBot(parameter_path='parameters.yaml', outpath_html=args.html_path) survBot = SurveillanceBot(parameter_path=args.parfile, outpath_html=args.html_path)
survBot.start() survBot.start()