Commandline: Verbs accessing global options

Created on 25 Sep 2018  Â·  2Comments  Â·  Source: commandlineparser/commandline

Is there a way to having a global set of "Options" that could be configured from _command line_, that all "Verb actions" could use/access?

Most helpful comment

Have you tried creating a common options class and then creating your verbs as subclasses of that common class?

All 2 comments

Have you tried creating a common options class and then creating your verbs as subclasses of that common class?

No I have not - will try this out. Thanks!

On Tue, Sep 25, 2018 at 17:26 Dan Nemec notifications@github.com wrote:

Have you tried creating a common options class and then creating your
verbs as subclasses of that common class?

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/commandlineparser/commandline/issues/335#issuecomment-424386906,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Apj4U9o7PpgOg9_2QaxOvN1Fjv9crfxZks5uekshgaJpZM4W41m_
.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Rohansi picture Rohansi  Â·  6Comments

hakito picture hakito  Â·  3Comments

smorzhov picture smorzhov  Â·  4Comments

ericnewton76 picture ericnewton76  Â·  4Comments

SeanoNET picture SeanoNET  Â·  4Comments