-
Notifications
You must be signed in to change notification settings - Fork 94
Open
Description
It would be nice to implement option arguments assignment using =.
use argh::FromArgs;
#[derive(FromArgs, Debug)]
#[argh(description = "The best app on earth")]
pub struct Args {
#[argh(option, short = 'a', description = "address to bind to")]
pub address: String,
}This works:
$ cargo run -- --address http://127.0.0.1Would be nice:
$ cargo run -- --address=http://127.0.0.1Right now it spits out this error:
Unrecognized argument: "--address=http://127.0.0.1". Did you mean "--address"?
Thank you.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels