From 8cebe9011274a52b5d865fe043d9f1ddddbbf0ea Mon Sep 17 00:00:00 2001 From: Matthias Kuhn Date: Wed, 22 Jan 2020 15:53:01 +0100 Subject: [PATCH] Add some help --- scripts/parse_dash_results.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/scripts/parse_dash_results.py b/scripts/parse_dash_results.py index c9d729752e14..ea95b0428838 100755 --- a/scripts/parse_dash_results.py +++ b/scripts/parse_dash_results.py @@ -366,11 +366,17 @@ def create_diff_image(self, control_image, rendered_image, mask_image): def main(): app = QApplication(sys.argv) - parser = argparse.ArgumentParser() - parser.add_argument('dash_url') - args = parser.parse_args() + parser = argparse.ArgumentParser( + description='''A tool to automatically update test images masks based on results submitted to cdash. - w = ResultHandler() + Will take local control images and rendered images on cdash to create a mask. + When using it, make sure that the new masks will only mask regions on the image that indeed allow for variation + and do not completely void any tests. + ''') + parser.add_argument('dash_url', help='URL to a dash result with images. E.g. https://cdash.orfeo-toolbox.org/testDetails.php?test=15052561&build=27712')) + args=parser.parse_args() + + w=ResultHandler() w.parse_url(args.dash_url) w.exec_()