Closed suntong closed 8 years ago
Global options
is unsupported at present. I'm trying to think. I will consider every one of your suggestions. I really appreciate you.
Global options is supported now. see exmaple 027-global-option and commit b9abefb
thanks. will try tomorrow.
PERFECT!!
Even better that I anticipated.
Well done. Thanks a bunch!
Hi 仕晋,
I'll enhance my code-gen further before I write the wiki. Meanwhile, another question,
Does CLI support global options? By "global options" I mean the options supplied before the sub commands. E.g., both
apt-get
andgit
have options before the sub commands:Any example that shows a sub command has global options and its own "private" options playing together?
On a very closely related question, when talking about global options, the most common request is for the application configuration, using something like
-C config
to override the defaults. Just like your 017-jsonfile example. My question is,Would CLI allow the application to,
-C config
) to specify a different configuration file to use (just like your 017-jsonfile example)Would CLI allow the above layered approach? How much it can do at present?
Thanks