]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
scripts: add description to ceph-release-notes
authorAbhishek Lekshmanan <alekshmanan@suse.com>
Mon, 10 Oct 2016 19:36:29 +0000 (21:36 +0200)
committerAbhishek Lekshmanan <alekshmanan@suse.com>
Mon, 10 Oct 2016 19:39:51 +0000 (21:39 +0200)
Signed-off-by: Abhishek Lekshmanan <alekshmanan@suse.com>
src/script/ceph-release-notes

index 31b936f8d5ddffed5257d72780b4d13a4d7bd16a..ea7125aa64875415fe40c38b171aadc1404cba80 100755 (executable)
@@ -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",