yetus-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject yetus git commit: YETUS-455. Print help when no args passed to releasedocmaker.py.
Date Sun, 04 Sep 2016 22:06:57 GMT
Repository: yetus
Updated Branches:
  refs/heads/master de0d3df7d -> 3bdce776b


YETUS-455. Print help when no args passed to releasedocmaker.py.

Signed-off-by: Allen Wittenauer <aw@apache.org>
Signed-off-by: Ajay Yadava <ajayyadava@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/yetus/repo
Commit: http://git-wip-us.apache.org/repos/asf/yetus/commit/3bdce776
Tree: http://git-wip-us.apache.org/repos/asf/yetus/tree/3bdce776
Diff: http://git-wip-us.apache.org/repos/asf/yetus/diff/3bdce776

Branch: refs/heads/master
Commit: 3bdce776b97cf93071ff20aee657b9de7dc94f30
Parents: de0d3df
Author: Andrew Wang <andrew.wang@cloudera.com>
Authored: Tue Aug 30 09:28:40 2016 -0700
Committer: Allen Wittenauer <aw@apache.org>
Committed: Sun Sep 4 15:06:23 2016 -0700

----------------------------------------------------------------------
 release-doc-maker/releasedocmaker.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/yetus/blob/3bdce776/release-doc-maker/releasedocmaker.py
----------------------------------------------------------------------
diff --git a/release-doc-maker/releasedocmaker.py b/release-doc-maker/releasedocmaker.py
index c2c6ac8..13eeb7f 100755
--- a/release-doc-maker/releasedocmaker.py
+++ b/release-doc-maker/releasedocmaker.py
@@ -544,7 +544,7 @@ def parse_args():
         usage=usage,
         epilog=
         "Markdown-formatted CHANGES and RELEASENOTES files will be stored"
-        "in a directory named after the highest version provided.")
+        " in a directory named after the highest version provided.")
     parser.add_option("-i",
                       "--index",
                       dest="index",
@@ -636,6 +636,10 @@ def parse_args():
 
     Linter.add_parser_options(parser)
 
+    if len(sys.argv) <= 1:
+        parser.print_help()
+        sys.exit(1)
+
     (options, _) = parser.parse_args()
 
     # Validate options


Mime
View raw message