getting there

This commit is contained in:
2026-03-21 17:25:09 +00:00
committed by James Norcutt
parent 6314b16e57
commit 8e32cc7277
5 changed files with 53 additions and 8 deletions
+2 -2
View File
@@ -11,7 +11,7 @@ use crate::{
};
#[derive(Debug, Parser)]
#[derive(Parser)]
struct Cli {
/// time in ms between two ticks.
#[arg(short, long, default_value_t = 200)]
@@ -23,7 +23,7 @@ struct Cli {
}
fn main() -> Result<(), Box<dyn Error>> {
let cli = Cli::Parse();
let cli = Cli::parse();
let tick_rate = Duration::from_millis(cli.tick_rate);
crate::crossterm::run(tick_rate, cli.unicode)?;
Ok(())