diff options
author | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2016-07-27 00:00:21 +0000 |
---|---|---|
committer | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2016-07-27 00:00:26 +0000 |
commit | 045b33f27edef83f1c0fc961efee9feb942937e0 (patch) | |
tree | 47e02a79ec9b18f252bd97f66f5c5e5e6daf81bf | |
parent | 9faad289e7fedb99a3d359cf1bb19dc5ca9c2a85 (diff) | |
download | morph-045b33f27edef83f1c0fc961efee9feb942937e0.tar.gz |
Add global '--ref' and '--repo' options
These new options will be used by subcommands that use
a morphology file to allow them to use remote files without
having to clone the repository.
Change-Id: I0f35068627b7f7ba766ac015f0e1debff94abc57
-rw-r--r-- | morphlib/app.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/morphlib/app.py b/morphlib/app.py index 75108fc2..ba6ffac8 100644 --- a/morphlib/app.py +++ b/morphlib/app.py @@ -84,6 +84,18 @@ class Morph(cliapp.Application): metavar='PREFIX, ...', default=defaults['trove-id']) + group_definitions_origin = 'Definitions origin options' + self.settings.string(['repo'], + 'definitions repository to use instead local ' + 'checkout', + metavar='REF', default=None, + group=group_definitions_origin) + self.settings.string(['ref'], + 'definitions ref to use when not using local ' + 'checkout', + metavar='REF', default=None, + group=group_definitions_origin) + group_advanced = 'Advanced Options' self.settings.boolean(['no-git-update'], 'do not update the cached git repositories ' |