Files
porcel8/src/args.rs

12 lines
465 B
Rust
Raw Normal View History

2024-02-29 11:55:14 +05:30
use clap::Parser;
#[derive(Parser,Debug,Clone)]
#[command(version,about,author)]
2024-03-05 20:10:53 +05:30
pub struct Porcel8ProgramArgs {
2024-02-29 11:55:14 +05:30
#[arg(short,long,help = "Filename of ROM to load.")]
pub filename:Option<String>,
#[arg(short,long,help = "Draw scale of window",default_value_t=8f32)]
pub draw_scale: f32,
#[arg(short,long,help = "Emulate new behaviour of instructions (As seen in Chip-48 and SuperChip8)",default_value_t=true)]
pub new_chip8_behaviour: bool
2024-02-29 11:55:14 +05:30
}