Skip to content
Browse files

Tweak output for year-in-review script

  • Loading branch information...
1 parent 0c7c28a commit 841b518a553346a9ea19c52ad4dc55a102470da4 @willkg willkg committed Dec 17, 2013
Showing with 6 additions and 5 deletions.
  1. +6 −5 scripts/year_in_review.py
View
11 scripts/year_in_review.py
@@ -7,8 +7,7 @@
import xmlrpclib
-USAGE = 'Usage: year_in_review.py <YEAR>'
-HEADER = 'year_in_review.py: find out what happened!'
+USAGE = 'Usage: year_in_review.py [--json] <YEAR>'
# Note: Most of the bugzila api code comes from Scrumbugz.
@@ -435,7 +434,7 @@ def main(argv):
return 1
if '--json' in argv:
- print 'OMGWTFBBQ! You want it in JSON!'
+ print '>>> OMGWTFBBQ! You want it in JSON!'
do_json = True
argv.remove('--json')
@@ -444,12 +443,14 @@ def main(argv):
output = []
output.append(('Year', year))
- print 'Generating bugzilla stats....'
+ print '>>> Generating bugzilla stats....'
output.extend(bugzilla_stats(year))
- print 'Generating git stats....'
+ print '>>> Generating git stats....'
output.extend(git_stats(year))
+ print ''
+
if do_json:
print json.dumps(output, indent=2)

0 comments on commit 841b518

Please sign in to comment.
Something went wrong with that request. Please try again.