Skip to content

Commit

Permalink
Make cleanstats easier to use
Browse files Browse the repository at this point in the history
  • Loading branch information
schmichael committed Oct 19, 2012
1 parent 34f83d5 commit 59212cd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGES.rst
Original file line number Original file line Diff line number Diff line change
@@ -1,6 +1,12 @@
History History
======= =======


next
----

* `cleanstats` now defaults to ``DEFAULT_GLOB`` if no files are passed on the
command line

0.7.0 "Local Artisanal Stats" released 2012-10-02 0.7.0 "Local Artisanal Stats" released 2012-10-02
------------------------------------------------- -------------------------------------------------


Expand Down
5 changes: 3 additions & 2 deletions mmstats/clean.py
Original file line number Original file line Diff line number Diff line change
@@ -1,9 +1,10 @@
import errno import errno
import glob
import os import os
import sys import sys




from mmstats import reader as mmstats_reader from mmstats import defaults, reader as mmstats_reader




def clean(files): def clean(files):
Expand Down Expand Up @@ -61,7 +62,7 @@ def clean(files):


def cli(): def cli():
if len(sys.argv) == 1: if len(sys.argv) == 1:
print 'usage: %s MMSTAT_FILES' % os.path.basename(sys.argv[0]) clean(glob.glob(defaults.DEFAULT_GLOB))
else: else:
clean(sys.argv[1:]) clean(sys.argv[1:])


Expand Down

0 comments on commit 59212cd

Please sign in to comment.