[game-data-packager] 05/12: don't print help in DEBUG mode

Simon McVittie smcv at debian.org
Sat Jan 24 17:56:17 UTC 2015


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

smcv pushed a commit to branch master
in repository game-data-packager.

commit 229f4336024a5cfcbb5a33ded7dfbbbd1ed1266f
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date:   Sat Jan 24 13:15:56 2015 +0100

    don't print help in DEBUG mode
---
 game_data_packager/__init__.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/game_data_packager/__init__.py b/game_data_packager/__init__.py
index 35d4e29..8b455d8 100644
--- a/game_data_packager/__init__.py
+++ b/game_data_packager/__init__.py
@@ -1869,7 +1869,8 @@ class GameData(object):
             # probably not enough files supplied?
             # print the help text, maybe that helps the user to determine
             # what they should have added
-            self.argument_parser.print_help()
+            if not os.environ.get('DEBUG'):
+                self.argument_parser.print_help()
             raise SystemExit(1)
         except DownloadNotAllowed:
             logger.error('Unable to complete any packages because ' +

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/game-data-packager.git



More information about the Pkg-games-commits mailing list