subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cmpil...@apache.org
Subject svn commit: r918176 - /subversion/trunk/tools/dev/wc-ng/count-progress.py
Date Tue, 02 Mar 2010 20:58:50 GMT
Author: cmpilato
Date: Tue Mar  2 20:58:50 2010
New Revision: 918176

URL: http://svn.apache.org/viewvc?rev=918176&view=rev
Log:
* tools/dev/wc-ng/count-progress.py
  (__main__): Show usage message if '--help' is found on the command-line.

Modified:
    subversion/trunk/tools/dev/wc-ng/count-progress.py

Modified: subversion/trunk/tools/dev/wc-ng/count-progress.py
URL: http://svn.apache.org/viewvc/subversion/trunk/tools/dev/wc-ng/count-progress.py?rev=918176&r1=918175&r2=918176&view=diff
==============================================================================
--- subversion/trunk/tools/dev/wc-ng/count-progress.py (original)
+++ subversion/trunk/tools/dev/wc-ng/count-progress.py Tue Mar  2 20:58:50 2010
@@ -79,6 +79,17 @@
 
 if __name__ == '__main__':
   if len(sys.argv) > 1:
+    if '--help' in sys.argv[1:]:
+      print("""\
+Usage: %s [WCROOT]
+       %s --help
+
+Show statistics related to outstanding WC-NG code conversion work
+items in working copy branch root WCROOT.  If WCROOT is omitted, this
+program will attempt to guess it using the assumption that it is being
+run from within the working copy of interest."""
+% (sys.argv[0], sys.argv[0]))
+      sys.exit(0)
     print_report(sys.argv[1])
   else:
     cwd = os.path.abspath(os.getcwd())



Mime
View raw message