diff --git a/pokemonterminal/command_flags.py b/pokemonterminal/command_flags.py index a72255c..b778cf0 100644 --- a/pokemonterminal/command_flags.py +++ b/pokemonterminal/command_flags.py @@ -108,3 +108,7 @@ ' name', nargs='?', default=0, const=0) +either.add_argument( + '--list', + help='list all pokemons', + action='store_true') diff --git a/pokemonterminal/main.py b/pokemonterminal/main.py index ca720e9..b2e3f3a 100644 --- a/pokemonterminal/main.py +++ b/pokemonterminal/main.py @@ -79,6 +79,11 @@ def main(argv=None): scripter.clear_terminal() return + if options.list: + for p in Filter.POKEMON_LIST: + print(p.get_name()) + return + if is_slideshow and options.id <= 0 and size > 1: if options.slideshow <= 0: print("Time has to be greater than 0. You can use decimal values.")