You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ds...@apache.org on 2022/07/08 21:21:48 UTC

svn commit: r1902586 - /subversion/trunk/tools/dist/release.py

Author: dsahlberg
Date: Fri Jul  8 21:21:47 2022
New Revision: 1902586

URL: http://svn.apache.org/viewvc?rev=1902586&view=rev
Log:
Make release.py display the help message if no subcommand are supplied

* tools/dist/release.py
  (main): Display the help message if no subcommand has been supplied

Modified:
    subversion/trunk/tools/dist/release.py

Modified: subversion/trunk/tools/dist/release.py
URL: http://svn.apache.org/viewvc/subversion/trunk/tools/dist/release.py?rev=1902586&r1=1902585&r2=1902586&view=diff
==============================================================================
--- subversion/trunk/tools/dist/release.py (original)
+++ subversion/trunk/tools/dist/release.py Fri Jul  8 21:21:47 2022
@@ -1916,7 +1916,10 @@ def main():
     os.environ['TZ'] = 'UTC'
 
     # finally, run the subcommand, and give it the parsed arguments
-    args.func(args)
+    try:
+      args.func(args)
+    except AttributeError:
+      parser.print_help()
 
 
 if __name__ == '__main__':