From 928aedce5cb7939c66a5eb0b2a29a44f290f4179 Mon Sep 17 00:00:00 2001 From: Gabriel Falcao Date: Thu, 13 Sep 2012 12:42:19 -0400 Subject: [PATCH] fixing executable --- README.md | 6 +++--- steadymark/__init__.py | 10 +++++++--- steadymark/version.py | 2 +- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index f401a38..feac51f 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # Steady Mark -> version 0.4.2 +> version 0.4.3 [![Build Status](https://secure.travis-ci.org/gabrielfalcao/steadymark.png?branch=master)](http://travis-ci.org/#!/gabrielfalcao/steadymark) ![meme](http://cdn.memegenerator.net/instances/400x/24908847.jpg) @@ -64,10 +64,10 @@ Just run with: $ steadymark README.md ``` -# Steadymark is on version 0.4.2 +# Steadymark is on version 0.4.3 ```python >>> from sure import this >>> from steadymark import version ->>> assert this(version).should.equal("0.4.2") +>>> assert this(version).should.equal("0.4.3") ``` diff --git a/steadymark/__init__.py b/steadymark/__init__.py index ca53740..e1a6625 100644 --- a/steadymark/__init__.py +++ b/steadymark/__init__.py @@ -40,6 +40,12 @@ def run(filenames): runner = Runner(filename) runner.run() + +def main(): + parser = OptionParser() + (options, args) = parser.parse_args() + run(args or ['README.md']) + __all__ = [ 'run', 'Runner', @@ -47,6 +53,4 @@ __all__ = [ ] if __name__ == '__main__': - parser = OptionParser() - (options, args) = parser.parse_args() - run(args or ['README.md']) + main() diff --git a/steadymark/version.py b/steadymark/version.py index 554469a..86253eb 100644 --- a/steadymark/version.py +++ b/steadymark/version.py @@ -24,4 +24,4 @@ # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR # OTHER DEALINGS IN THE SOFTWARE. -version = '0.4.2' +version = '0.4.3'