Files
porcel8/src/args.rs

12 lines
465 B
Rust

use clap::Parser;
#[derive(Parser,Debug,Clone)]
#[command(version,about,author)]
pub struct Porcel8ProgramArgs {
#[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
}