Assigning `option` arguments with a `=`
Open
- Dominant language
- Rust
- Stars
- 2k
- Forks
- 102
- PR merge metrics
- No merged PRs in 30d
Description
It would be nice to implement option arguments assignment using `=`.
```rust
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:
```console
$ cargo run -- --address http://127.0.0.1
```
Would be nice:
```console
$ cargo run -- --address=http://127.0.0.1
```
Right now it spits out this error:
```
Unrecognized argument: "--address=http://127.0.0.1". Did you mean "--address"?
```
Thank you.
Contributor guide
Assessment
This issue has not been assessed yet.