getting there
This commit is contained in:
+2
-2
@@ -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(())
|
||||
|
||||
Reference in New Issue
Block a user