summaryrefslogtreecommitdiffstats
path: root/src/script/ceph-release-notes
diff options
context:
space:
mode:
authorAbhishek Lekshmanan <alekshmanan@suse.com>2016-10-10 21:36:29 +0200
committerAbhishek Lekshmanan <alekshmanan@suse.com>2016-10-10 21:39:51 +0200
commitd8955d556850fd024752ac6f431aa7f812fe1ec3 (patch)
tree9949a0f40518c42924f5793596ff3d3374686ed9 /src/script/ceph-release-notes
parentMerge pull request #11326 from dillaman/wip-17416 (diff)
downloadceph-d8955d556850fd024752ac6f431aa7f812fe1ec3.tar.xz
ceph-d8955d556850fd024752ac6f431aa7f812fe1ec3.zip
scripts: add description to ceph-release-notes
Signed-off-by: Abhishek Lekshmanan <alekshmanan@suse.com>
Diffstat (limited to 'src/script/ceph-release-notes')
-rwxr-xr-xsrc/script/ceph-release-notes13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/script/ceph-release-notes b/src/script/ceph-release-notes
index 31b936f8d5d..ea7125aa648 100755
--- a/src/script/ceph-release-notes
+++ b/src/script/ceph-release-notes
@@ -166,7 +166,18 @@ def make_release_notes(gh, repo, ref, plaintext, verbose, strict):
if __name__ == "__main__":
- parser = argparse.ArgumentParser()
+ desc = '''
+ Make ceph release notes for a given revision. Eg usage:
+
+ $ ceph-release-notes -r tags/v0.87..origin/giant $(git rev-parse --show-toplevel)
+
+ It is recommended to set the github env. token in order to avoid
+ hitting the api rate limits.
+ '''
+
+ parser = argparse.ArgumentParser(description=desc,
+ formatter_class=argparse.RawTextHelpFormatter)
+
parser.add_argument("--rev", "-r",
help="git revision range for creating release notes")
parser.add_argument("--text", "-t",