[game-data-packager] 01/01: re-enable --verbose & --debug command line options

Alexandre Detiste detiste-guest at moszumanska.debian.org
Fri Jan 12 08:31:19 UTC 2018


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

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

commit 4a4dfd87e9e384476c54e020f0d011e21655f532
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date:   Fri Jan 12 09:30:49 2018 +0100

    re-enable --verbose & --debug command line options
---
 game_data_packager/command_line.py | 29 +++++++++++++++--------------
 1 file changed, 15 insertions(+), 14 deletions(-)

diff --git a/game_data_packager/command_line.py b/game_data_packager/command_line.py
index 611763e..0a1196b 100644
--- a/game_data_packager/command_line.py
+++ b/game_data_packager/command_line.py
@@ -88,6 +88,21 @@ def run_command_line():
             description='Package game files.',
             add_help=False,
             argument_default=argparse.SUPPRESS)
+
+    group = base_parser.add_mutually_exclusive_group()
+    group.add_argument('--verbose', action='store_true',
+            help='show output from external tools')
+    group.add_argument('--no-verbose', action='store_false',
+            dest='verbose', help='hide output from external '
+             'tools (default)')
+
+    class DebugAction(argparse.Action):
+        def __call__(self, parser, namespace, values, option_string=None):
+            logging.getLogger().setLevel(logging.DEBUG)
+
+    base_parser.add_argument('--debug', action=DebugAction, nargs=0,
+            help='show debug messages')
+
     game_parser = argparse.ArgumentParser(prog='game-data-packager',
             description='Package game files.',
             add_help=False,
@@ -158,20 +173,6 @@ def run_command_line():
         dest='search',
         help='only look in paths provided on the command line')
 
-    group = base_parser.add_mutually_exclusive_group()
-    group.add_argument('--verbose', action='store_true',
-            help='show output from external tools')
-    group.add_argument('--no-verbose', action='store_false',
-            dest='verbose', help='hide output from external '
-             'tools (default)')
-
-    class DebugAction(argparse.Action):
-        def __call__(self, parser, namespace, values, option_string=None):
-            logging.getLogger().setLevel(logging.DEBUG)
-
-    base_parser.add_argument('--debug', action=DebugAction, nargs=0,
-            help='show debug messages')
-
     class DumbParser(argparse.ArgumentParser):
         def error(self, message):
             pass

-- 
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