How to access the original command name
Open
- Dominant language
- Rust
- Stars
- 2k
- Forks
- 102
- PR merge metrics
- No merged PRs in 30d
Description
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:
```rust
#[derive(FromArgs)]
struct Args {
#[argh(command_name)]
cmd_name: String,
}
```
Contributor guide
Assessment
This issue has not been assessed yet.