Skip to main content

parse_args

Function parse_args 

Source
pub fn parse_args(
    args: &[String],
    options: &[GameOption],
) -> Result<Options, String>
Expand description

Parses frame-png’s arguments, the game’s options among them, checking key and button names and waits up front (check) so a typo is an error, not a Harness panic.