summaryrefslogtreecommitdiff
path: root/argparse/src/action.rs
diff options
context:
space:
mode:
authorDaniel Mueller <deso@posteo.net>2019-01-15 18:07:08 -0800
committerDaniel Mueller <deso@posteo.net>2019-01-15 18:07:08 -0800
commitca71373ce37e6377d199ac285df999230049ab8e (patch)
treee40849d803126db8826bc314b19510645e6d7b69 /argparse/src/action.rs
parent984f5fadd1bfcd0184af8bddc4973acfe8affb64 (diff)
downloadnitrocli-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/action.rs')
0 files changed, 0 insertions, 0 deletions