Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix help message formatting for validateDrpy.py #29

Merged
merged 2 commits into from
Jan 20, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
34 changes: 18 additions & 16 deletions bin.src/validateDrp.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,23 +31,25 @@
from lsst.validate.drp import validate, util


description = """
Calculate and plot validation Key Project Metrics from the LSST SRD.
http://ls.st/LPM-17

Produces results to:
STDOUT
Summary of key metrics
REPONAME*.png
Plots of key metrics. Generated in current working directory.
REPONAME*.json
JSON serialization of each KPM.

where REPONAME is based on the repository name but with path separators
replaced with underscores. E.g., "Cfht/output" -> "Cfht_output_"
"""

if __name__ == "__main__":
description = """
Calculate and plot validation Key Project Metrics from the LSST SRD.
http://ls.st/LPM-17

Produces results to:
STDOUT
Summary of key metrics
REPONAME*.png
Plots of key metrics. Generated in current working directory.
REPONAME*.json
JSON serialization of each KPM.

where REPONAME is based on the repository name but with path separators
replaced with underscores. E.g., "Cfht/output" -> "Cfht_output_"
"""
parser = argparse.ArgumentParser(description=description)
parser = argparse.ArgumentParser(description=description,
formatter_class=argparse.RawDescriptionHelpFormatter)
parser.add_argument('repo', type=str,
help='path to a repository containing the output of processCcd')
parser.add_argument('--configFile', '-c', type=str, default=None,
Expand Down