[args] Accept the rom filename as arg

This commit is contained in:
2024-03-05 20:10:53 +05:30
parent 6c0d48b749
commit 8702fe7363
2 changed files with 16 additions and 11 deletions

View File

@@ -2,7 +2,7 @@ use clap::Parser;
#[derive(Parser,Debug,Clone)]
#[command(version,about,author)]
pub struct Chip8ProgramArgs{
pub struct Porcel8ProgramArgs {
#[arg(short,long,help = "Filename of ROM to load.")]
pub filename:Option<String>
}