Skip to main content

parse_step

Function parse_step 

Source
pub fn parse_step(flag: &str, value: &str) -> Option<Result<Step, String>>
Expand description

Reads the script flag flag with its value value, if it is one: --keys (or --script), --pad, --act, --wait or --crank. A step no player can play (Step::check) is an error, not a panic later. The longest wait is the player’s to check (the Harness’s with check), and an action’s name is looked up in the game’s keymap.