FastWaveBackend/src/main.rs

20 lines
334 B
Rust
Raw Normal View History

2022-04-14 04:50:37 +00:00
use std::fs::File;
use clap::Parser;
2022-06-03 16:06:20 +00:00
pub mod vcd;
use vcd::*;
2022-04-14 04:50:37 +00:00
#[derive(Parser)]
struct Cli {
/// The path to the file to read
#[clap(parse(from_os_str))]
path: std::path::PathBuf}
2022-04-14 04:50:37 +00:00
fn main() -> std::io::Result<()> {
let args = Cli::parse();
2022-06-18 05:00:01 +00:00
let file = File::open(&args.path)?;
2022-06-09 01:45:47 +00:00
parse_vcd(file);
2022-06-04 01:06:46 +00:00
2022-04-14 04:50:37 +00:00
Ok(())
}