diff options
author | Daniel Mueller <deso@posteo.net> | 2019-01-15 18:07:08 -0800 |
---|---|---|
committer | Daniel Mueller <deso@posteo.net> | 2019-01-15 18:07:08 -0800 |
commit | ca71373ce37e6377d199ac285df999230049ab8e (patch) | |
tree | e40849d803126db8826bc314b19510645e6d7b69 /argparse/src/test_enum.rs | |
parent | 984f5fadd1bfcd0184af8bddc4973acfe8affb64 (diff) | |
download | nitrocli-ca71373ce37e6377d199ac285df999230049ab8e.tar.gz nitrocli-ca71373ce37e6377d199ac285df999230049ab8e.tar.bz2 |
Auto-generate help text for Option-based arguments
The previous change to properly format the help text for optional
arguments left one thing out: parameters that are based on an Option as
opposed to an enum. The problem with those is that we cannot simply ask
the value (i.e., the Option) for all the variants of the inner type.
Instead, we have to reference the actual type of the inner enum in order
to retrieve all its possible variants.
Diffstat (limited to 'argparse/src/test_enum.rs')
0 files changed, 0 insertions, 0 deletions