Pokemon-Terminal/main.py
LazoCoder 94fea57850 Fixed formatting issues where columns were not aligned
When printing Pokemon from a region or letter the columns would be off
sometimes because the numbers of the Pokemon have a different quantity
of digits. Example: “2 Ivysaur” should be printed as “002 Ivysaur”.
2017-04-21 00:27:01 -04:00

39 lines
1,017 B
Python

# The main module that brings everything together.
from sys import argv
import time
import printer
import backchanger
# Test each Pokemon in order, one by one.
def debug():
for x in range(1, 494):
backchanger.change_background(x)
time.sleep(0.25)
# Entrance to the program.
if __name__ == "__main__":
if len(argv) == 2:
arg = argv[1].lower()
if len(arg) == 1:
printer.print_pokemon_starting_with(arg)
elif arg == "--help" or arg == "help" or arg == "-h":
printer.print_usage()
elif arg == "kanto":
printer.print_kanto()
elif arg == "johto":
printer.print_johto()
elif arg == "hoenn":
printer.print_hoenn()
elif arg == "sinnoh":
printer.print_sinnoh()
elif arg == "all":
printer.print_all()
elif arg == "debug":
debug()
else:
backchanger.change_background(arg)
else:
printer.print_usage()