killercup / quicli

Quickly build cool CLI apps in Rust.
https://killercup.github.io/quicli/
Apache License 2.0
540 stars 31 forks source link

export clap macros #71

Closed vitiral closed 6 years ago

vitiral commented 6 years ago

clap exports very useful macros such as crate_version etc. These should be exported if possible.

Also, I think it is okay to export the other clap types, since sometimes you want to access App directly even if you are using structopt.

killercup commented 6 years ago

What's the use case for crate_version? Structopt uses it internally already.

vitiral commented 6 years ago

oh that's right. I forgot that most of this is handled for you by structopt!

The use case was brought up in the CLI-wg chat (that they didn't know of a way to find the info) but it's already provided so shrug.