Made the commandline arguments a bit more clear
This commit is contained in:
12
src/args.rs
12
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<std::path::PathBuf>,
|
||||
|
||||
#[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<OsString>,
|
||||
|
||||
#[argp(option)]
|
||||
#[argp(description = "Where to run the command. If no command is specified, this option is ignored.")]
|
||||
pub cmd_path: Option<std::path::PathBuf>,
|
||||
|
||||
#[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 <srcpath>\" --monitor <hexpath>`.")]
|
||||
#[argp(description = "Handy shorthand for `write --cmd \"sdcc <srcpath>\" --cmd-path \"<srcparentpath>/tulflash\" --monitor <hexpath>`.")]
|
||||
#[argp(subcommand, name = "run")]
|
||||
pub struct ArgRun {
|
||||
#[argp(positional)]
|
||||
|
Reference in New Issue
Block a user