From 7ca0c605b8ef9504df0ce6099de661ef7c2d2bc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Proch=C3=A1zka?= Date: Thu, 25 Sep 2025 11:50:38 +0200 Subject: [PATCH] Made the commandline arguments a bit more clear --- src/args.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/args.rs b/src/args.rs index c23346e..3a9cfba 100644 --- a/src/args.rs +++ b/src/args.rs @@ -57,14 +57,14 @@ pub struct ArgWrite { #[argp(description = "Path to the source Intel HEX file.")] pub path: OsString, - #[argp(option)] - #[argp(description = "Where to run the command. Will be created if it doesn't exist.")] - pub cmd_path: Option, - #[argp(option)] #[argp(description = "Command to run before writing the file. Handy for compiling the program and running it at the same time.")] pub cmd: Option, + #[argp(option)] + #[argp(description = "Where to run the command. If no command is specified, this option is ignored.")] + pub cmd_path: Option, + #[argp(option, default = "0")] #[argp(description = "Start address where to write from. Only for raw binaries, defaults to 0.")] pub start: usize, @@ -82,7 +82,7 @@ pub struct ArgWrite { pub skip_verify: bool, #[argp(switch)] - #[argp(description = "Write individual sections to Flash rather than performing a single write. Only applies to Intel HEX.")] + #[argp(description = "Write individual sections to Flash rather than performing a single write. Only applies to Intel HEX. Can in some very specific cases speed up the writing process.")] pub write_individual: bool, #[argp(switch)] @@ -101,7 +101,7 @@ pub struct ArgErase {} pub struct ArgMonitor {} #[derive(FromArgs)] -#[argp(description = "Handy shorthand for `write --cmd \"sdcc \" --monitor `.")] +#[argp(description = "Handy shorthand for `write --cmd \"sdcc \" --cmd-path \"/tulflash\" --monitor `.")] #[argp(subcommand, name = "run")] pub struct ArgRun { #[argp(positional)]