[Python-modules-commits] [greekocr4gamera] 04/10: fix-help

Daniel Stender danstender-guest at moszumanska.debian.org
Sat Oct 17 18:10:40 UTC 2015


This is an automated email from the git hooks/post-receive script.

danstender-guest pushed a commit to branch master
in repository greekocr4gamera.

commit 76eea97046054090b0641427818c9f556bdb899a
Author: Daniel Stender <debian at danielstender.com>
Date:   Sat Oct 17 20:02:28 2015 +0200

    fix-help
    
       add sys.exit() to break at help invocation
       Bug: https://bugs.debian.org/722468
       Forwarded: no
---
 scripts/greekocr4gamera.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/greekocr4gamera.py b/scripts/greekocr4gamera.py
index d7eac4e..469aab0 100755
--- a/scripts/greekocr4gamera.py
+++ b/scripts/greekocr4gamera.py
@@ -59,6 +59,7 @@ while i < len(args):
       options["trainingdata"] = args[i]
    elif args[i] in ("--help", "-h"):
       usage()
+      sys.exit(0)
    elif args[i] in ("--wholistic", "-w"):
       options["mode"] = "wholistic"
    elif args[i] in ("--separatistic", "-s"):

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/greekocr4gamera.git



More information about the Python-modules-commits mailing list