| 1 | mod app; |
| 2 | |
| 3 | use clap::Parser; |
| 4 | |
| 5 | fn main() -> eframe::Result<()> { |
| 6 | let cli = posprint::cli::Cli::parse(); |
| 7 | if cli.command.is_some() { |
| 8 | std::process::exit(posprint::cli::run(cli)); |
| 9 | } |
| 10 | |
| 11 | let options = eframe::NativeOptions { |
| 12 | viewport: eframe::egui::ViewportBuilder::default().with_inner_size([1100.0, 750.0]), |
| 13 | ..Default::default() |
| 14 | }; |
| 15 | eframe::run_native( |
| 16 | "posprint", |
| 17 | options, |
| 18 | Box::new(|_cc| Ok(Box::new(app::PosPrintApp::new()))), |
| 19 | ) |
| 20 | } |