Here's an example by @killercup to set log levels.
-v prints warnings
-vv prints info
-vvv prints debug
-vvvv prints trace
Adding this behavior to your CLI is 2 lines. Can't think of a more consise way to reuse this logic.
https://crates.io/crates/clap-verbosity-flag …
-
-
Show this thread
-
Anyway. The step after this is to put out a few more modules. And the step after that is to finally get our man page generation working. Close, but need one more patch to clap before we can make it happen. Imagine never having to guess what env vars a CLI takes. That'd be nice.
Show this thread
End of conversation
New conversation -
-
-
omg i am so excited about this omg omg
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.