diff --git a/cromulant/args.py b/cromulant/args.py index cb825e2..77b7257 100644 --- a/cromulant/args.py +++ b/cromulant/args.py @@ -13,6 +13,7 @@ class Args: images: bool = True header: bool = True footer: bool = True + intro: bool = True @staticmethod def prepare() -> None: @@ -26,6 +27,7 @@ class Args: ("no_images", "images"), ("no_header", "header"), ("no_footer", "footer"), + ("no_intro", "intro"), ] for r_item in other_name: diff --git a/cromulant/argspec.py b/cromulant/argspec.py index 99be09b..af51284 100644 --- a/cromulant/argspec.py +++ b/cromulant/argspec.py @@ -93,3 +93,9 @@ class ArgSpec: action="store_false", info="Don't show the footer controls", ) + + ArgSpec.add_argument( + "no_intro", + action="store_false", + info="Don't show the intro message", + ) diff --git a/cromulant/game.py b/cromulant/game.py index d806a8a..949f9ba 100644 --- a/cromulant/game.py +++ b/cromulant/game.py @@ -91,7 +91,9 @@ class Game: def prepare() -> None: Game.fill() Game.info() - Game.intro() + + if Args.intro: + Game.intro() @staticmethod def update(ant: Ant) -> None: