Skip to content

Commit

Permalink
Remove leading white space from multi-line string.
Browse files Browse the repository at this point in the history
Move the definition of the description variable out of the
'if __name__=="__main_"' block for cleaner formatting of the whitespace.
  • Loading branch information
wmwv committed Jan 20, 2017
1 parent aabd486 commit b1da0ea
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions bin.src/validateDrp.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,23 @@
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,
formatter_class=argparse.RawDescriptionHelpFormatter)
parser.add_argument('repo', type=str,
Expand Down

0 comments on commit b1da0ea

Please sign in to comment.