summaryrefslogtreecommitdiffstats
path: root/CLI/rust/src/game_of_life.rs
diff options
context:
space:
mode:
Diffstat (limited to 'CLI/rust/src/game_of_life.rs')
-rw-r--r--CLI/rust/src/game_of_life.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/CLI/rust/src/game_of_life.rs b/CLI/rust/src/game_of_life.rs
index c854e7f..4b1e979 100644
--- a/CLI/rust/src/game_of_life.rs
+++ b/CLI/rust/src/game_of_life.rs
@@ -66,6 +66,7 @@ pub(crate) fn options() -> Result<ArgMatches, Error> {
.short('d')
.long("delay")
.default_value("50")
+ .validator(opts::validators::is_positive)
.display_order(6)
)
.get_matches();