You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by cm...@apache.org on 2010/03/02 21:58:50 UTC

svn commit: r918176 - /subversion/trunk/tools/dev/wc-ng/count-progress.py

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())