comparison pytouhou/options.py @ 597:244c99c568c8

Don’t hardcode the available games and interfaces, and relocation them.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sat, 25 Oct 2014 18:52:16 +0200
parents e15672733c93
children d1f0bb0b7a17
comparison
equal deleted inserted replaced
596:ab131d04987d 597:244c99c568c8
123 game_group = parser.add_argument_group('Game options') 123 game_group = parser.add_argument_group('Game options')
124 game_group.add_argument('-s', '--stage', metavar='STAGE', type=int, help='Stage, 1 to 7 (Extra), nothing means story mode.') 124 game_group.add_argument('-s', '--stage', metavar='STAGE', type=int, help='Stage, 1 to 7 (Extra), nothing means story mode.')
125 game_group.add_argument('-r', '--rank', metavar='RANK', type=int, help='Rank, from 0 (Easy, default) to 3 (Lunatic).') 125 game_group.add_argument('-r', '--rank', metavar='RANK', type=int, help='Rank, from 0 (Easy, default) to 3 (Lunatic).')
126 game_group.add_argument('-c', '--character', metavar='CHARACTER', type=int, help='Select the character to use, from 0 (ReimuA, default) to 3 (MarisaB).') 126 game_group.add_argument('-c', '--character', metavar='CHARACTER', type=int, help='Select the character to use, from 0 (ReimuA, default) to 3 (MarisaB).')
127 game_group.add_argument('-b', '--boss-rush', action='store_true', help='Fight only bosses.') 127 game_group.add_argument('-b', '--boss-rush', action='store_true', help='Fight only bosses.')
128 game_group.add_argument('--game', metavar='GAME', choices=['EoSD'], help='Select the game engine to use.') 128 game_group.add_argument('--game', metavar='GAME', help='Select the game engine to use.')
129 game_group.add_argument('--interface', metavar='INTERFACE', choices=['EoSD', 'Sample'], help='Select the interface to use.') 129 game_group.add_argument('--interface', metavar='INTERFACE', help='Select the interface to use.')
130 game_group.add_argument('--hints', metavar='HINTS', help='Hints file, to display text while playing.') 130 game_group.add_argument('--hints', metavar='HINTS', help='Hints file, to display text while playing.')
131 131
132 replay_group = parser.add_argument_group('Replay options') 132 replay_group = parser.add_argument_group('Replay options')
133 replay_group.add_argument('--replay', metavar='REPLAY', help='Select a file to replay.') 133 replay_group.add_argument('--replay', metavar='REPLAY', help='Select a file to replay.')
134 replay_group.add_argument('--save-replay', metavar='REPLAY', help='Save the upcoming game into a replay file.') 134 replay_group.add_argument('--save-replay', metavar='REPLAY', help='Save the upcoming game into a replay file.')