From ce848bb700eb9d2085c3ff52975ffd96253ed339 Mon Sep 17 00:00:00 2001 From: Hakki Date: Fri, 16 Aug 2024 20:17:43 +0200 Subject: [PATCH] cli: initial help for input/output --- src/bin/topola/main.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/bin/topola/main.rs b/src/bin/topola/main.rs index 3d1016c..0c0ebda 100644 --- a/src/bin/topola/main.rs +++ b/src/bin/topola/main.rs @@ -13,16 +13,19 @@ use topola::specctra::design::SpecctraDesign; #[derive(Parser, Debug, Default)] #[command(about, version)] struct Cli { + #[arg(value_name = "SPECCTRA DESIGN FILE", + help = "Specify the Specctra Design (*.dsn) file input file for the Topola autorouter")] input: PathBuf, - #[arg(short, long, value_name = "FILE")] + #[arg(short, long, value_name = "FILE", + help = "Specify the output Topola session file (*.ses)") + ] output: Option, - #[arg(short, long, value_name = "FILE")] + #[arg(short, long, value_name = "FILE", help = "TODO")] commands: Option, } fn main() -> Result<(), std::io::Error> { let args = Cli::parse(); - let design_file = File::open(&args.input)?; let mut design_bufread = BufReader::new(design_file);