google / google/argh

Only display name of binary

Open
#12 5 comments 0 reactions 0 assignees View on GitHub
bug good first issue
Dominant language
Rust
Stars
2k
Forks
102
PR merge metrics
No merged PRs in 30d

Description

I'm having a weird issue with the generated help message: the command is with it's absolute path when I run `./target/debug/mycmd --help`

What am I doing wrong?

```
./target/debug/mycmd --help
Usage: ./target/debug/mycmd [] -a

[-p ]

MyCMD

Options:
-a, --address address
-p, --port port
--help display usage information
```

```rust
#[derive(FromArgs)]
/// MyCMD
struct Opt {
#[argh(option, short = 'a')]
/// address
address: String,
#[argh(option, short = 'p')]
/// port
port: Option,
#[argh(positional)]
/// script files to run
test_file: Vec,
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.