diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-03-05 12:45:32 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-03-05 12:45:32 +0100 |
| commit | 43c3ac7014b4efb4baaed9cdbe9e9fbe23307c2d (patch) | |
| tree | 6135e18bb746b56ff9bbaf939827be8913ab7e18 | |
| parent | 4ec5d0ed0f595309cb150201c87d25d17c62f099 (diff) | |
Add a little optional verbosity.
| -rwxr-xr-x | cdist | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -970,12 +970,19 @@ class Tree(object): def build_dependencies(self, options): for i in self.dependencies(options): + global args + if args.verbose: + print('Building a dependency of %s %s %s with %s' % (self.name, self.specifier, self.version, options)) i[0].build(i[1]) def build(self, options): if self.built: return + global args + if args.verbose: + print("* Building %s %s %s with %s" % (self.name, self.specifier, self.version, options)) + variables = copy.copy(self.target.variables) # Start with the options passed in @@ -1042,6 +1049,8 @@ def main(): parser.add_argument('--no-version-commit', help="use just tags for versioning, don't modify wscript, ChangeLog etc.", action='store_true') parser.add_argument('--option', help='set an option for the build (use --option key:value)', action='append') parser.add_argument('--ccache', help='use ccache', action='store_true') + parser.add_argument('--verbose', help='be verbose', action='store_true') + global args args = parser.parse_args() # Check for incorrect multiple parameters |
