help="get all the tags of the game, one per line",
metavar="GAME"
)
+game_actions.add_argument("--info-options",
+ help="get all the option modes of the game",
+ metavar="GAME"
+)
game_actions.add_argument("--info-icon",
help="get the icon of the game",
metavar="GAME"
g = args.info_desc
elif (args.info_tags):
g = args.info_tags
+elif (args.info_options):
+ g = args.info_options
elif (args.info_icon):
g = args.info_icon
else:
elif (args.info_tags):
for tag in game.tags:
print(tag)
+elif (args.info_options):
+ for (opt, desc) in game.opts.items():
+ print(opt + ":", desc)
elif (args.info_icon):
if ("Icon" in game):
print(game["Icon"])
def list(self):
i = 1
for game in self.games:
- print("{0:6d}".format(i), "", game.name)
+ n = " " + game.name
+ if (game.opts):
+ n = "* " + game.name
+ print("{0:6d}".format(i) + n)
i += 1
def list_tag(self):