google / google/argh

Generate a default arg_name for fields one isn't specified

Open
#113 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
2k
Forks
102
PR merge metrics
No merged PRs in 30d

Description

As suggested in https://github.com/google/argh/pull/112#discussion_r764403695, @richkadel suggested that if a field doesn't have an `arg_name` specified, we could generate one automatically for it to make it prettier for help messages or redactions. We should consider doing:

* lower case the field name
* convert `_` to `-`
* remove leading `_`

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.