argh
argh copied to clipboard
How to access the original command name
Typically std::env::args::nth(0)
contains the binary execution name.
How am I going to access it when I use #[derive(FromArgs)]
?
I would like to have something like this:
#[derive(FromArgs)]
struct Args {
#[argh(command_name)]
cmd_name: String,
}