[game-data-packager] 09/18: Don't add all packages as aliases: they make --help ridiculous

Simon McVittie smcv at debian.org
Thu Jan 22 12:40:41 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 ad8110d8d53860d488c71a162d7ffe369c37db7b
Author: Simon McVittie <smcv at debian.org>
Date:   Thu Jan 22 11:18:57 2015 +0000

    Don't add all packages as aliases: they make --help ridiculous
---
 lib/game_data_packager/__init__.py | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/lib/game_data_packager/__init__.py b/lib/game_data_packager/__init__.py
index 014d10e..71e30cf 100644
--- a/lib/game_data_packager/__init__.py
+++ b/lib/game_data_packager/__init__.py
@@ -1750,11 +1750,6 @@ class GameData(object):
     def add_parser(self, parsers, base_parser, **kwargs):
         aliases = self.aliases
 
-        for package in self.packages.values():
-            aliases.add(package.name)
-            # do not add all the package's aliases: they can be things
-            # that collide with other games, like mp1
-
         parser = parsers.add_parser(self.shortname,
                 help=self.longname, aliases=aliases,
                 description=self.help_text,

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