This commit is contained in:
Auric Vente 2024-07-25 20:10:17 -06:00
parent 876140252b
commit 5120420329
3 changed files with 11 additions and 1 deletions

View File

@ -13,6 +13,7 @@ class Args:
images: bool = True images: bool = True
header: bool = True header: bool = True
footer: bool = True footer: bool = True
intro: bool = True
@staticmethod @staticmethod
def prepare() -> None: def prepare() -> None:
@ -26,6 +27,7 @@ class Args:
("no_images", "images"), ("no_images", "images"),
("no_header", "header"), ("no_header", "header"),
("no_footer", "footer"), ("no_footer", "footer"),
("no_intro", "intro"),
] ]
for r_item in other_name: for r_item in other_name:

View File

@ -93,3 +93,9 @@ class ArgSpec:
action="store_false", action="store_false",
info="Don't show the footer controls", info="Don't show the footer controls",
) )
ArgSpec.add_argument(
"no_intro",
action="store_false",
info="Don't show the intro message",
)

View File

@ -91,7 +91,9 @@ class Game:
def prepare() -> None: def prepare() -> None:
Game.fill() Game.fill()
Game.info() Game.info()
Game.intro()
if Args.intro:
Game.intro()
@staticmethod @staticmethod
def update(ant: Ant) -> None: def update(ant: Ant) -> None: