Defining common options for sub-commands with plac
My question is essentially a follow-up to this question. This shows how
you can use plac to automatically generate a command-line interface with
sub-commands representing each function.
Is it possible to tell plac about options which are common to all
sub-commands, and could be viewed as 'global' options? In fact, these
options should have meaning without a sub-command.
As an example, I might have svn checkout and svn update sub-commands, but
would also like an svn -v or svn --version command.
No comments:
Post a Comment