# HG changeset patch # User dermetfan # Date 1435318046 -7200 # Fri Jun 26 13:27:26 2015 +0200 # Node ID 610c0c457c814dc7921b4f70362979611793be0b # Parent 71a3def45471eed9c1ad87ac53441e28d27026d3 randomly initialization default diff --git a/src/main.rs b/src/main.rs --- a/src/main.rs +++ b/src/main.rs @@ -54,7 +54,7 @@ options.optopt("d", ARG_DEAD, "the character to display for dead cells", "CHAR"); options.optopt("a", ARG_ALIVE, "the character to display for living cells", "CHAR"); options.optopt("b", ARG_BORDER, "Draw a border around the grid. Valid TYPEs are: blank, single (default), double, strong, thin, thick, solid", "TYPE"); - options.optopt("x", ARG_RAND, "initialize the grid randomly with CHANCE for life in each cell ([0..1], default 0.5)", "CHANCE"); + options.optflagopt("x", ARG_RAND, "randomly initialize the grid with CHANCE for life in each cell ([0..1], default 0.5)", "CHANCE"); let print_help = |short: bool| { const TITLE: &'static str = "cursedlife\nCopyright 2015 Robin Stumm\nhttp://dermetfan.net";