[game-data-packager] 01/01: dumb_parser: handle "GDP -h game" like full parser
Alexandre Detiste
detiste-guest at moszumanska.debian.org
Mon Jul 13 08:20:04 UTC 2015
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 e1f28525220478d0a013a114ea6f53d0e9b73ed2
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date: Mon Jul 13 10:18:55 2015 +0200
dumb_parser: handle "GDP -h game" like full parser
maybe "GDP -h game" & "GDP game -h" should behave the same way,
don't know if this is possible with Python's argparse
---
game_data_packager/__init__.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/game_data_packager/__init__.py b/game_data_packager/__init__.py
index a511013..36ba239 100644
--- a/game_data_packager/__init__.py
+++ b/game_data_packager/__init__.py
@@ -3076,6 +3076,8 @@ def run_command_line():
g = dumb_parser.parse_args().game
if g is None:
games = load_games(None)
+ elif '-h' in sys.argv or '--help' in sys.argv:
+ games = load_games(None)
elif os.path.isfile(os.path.join(DATADIR, '%s.json' % g)):
games = load_games(None, game=g)
else:
--
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