Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help text for Options::Auto<T> doesn't include T #2654

Open
wthrowe opened this issue Dec 14, 2020 · 0 comments
Open

Help text for Options::Auto<T> doesn't include T #2654

wthrowe opened this issue Dec 14, 2020 · 0 comments
Labels

Comments

@wthrowe
Copy link
Member

wthrowe commented Dec 14, 2020

It shows something like

  Options:
    Arg:
      type=Auto
      Help text

without indicating what type can be passed instead of "Auto" (or if the special string is "None").

The text displayed is governed by the yaml_type struct in OptionsDetails.hpp, which is overloaded for some standard library types but otherwise just uses pretty_type::short_name. Some way of overriding the name for user-defined types will need to be added.

It might be possible to merge this information into the create_from_yaml struct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant