argh icon indicating copy to clipboard operation
argh copied to clipboard

Generate a default arg_name for fields one isn't specified

Open erickt opened this issue 3 years ago • 0 comments

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 _

erickt avatar Dec 08 '21 18:12 erickt