diff options
| author | cah <cah@ableton.com> | 2020-03-05 12:45:32 +0100 |
|---|---|---|
| committer | cah <cah@ableton.com> | 2020-03-05 12:45:32 +0100 |
| commit | 031e4b83c2cab49aede1d450beb2d1acdbedb07f (patch) | |
| tree | 6135e18bb746b56ff9bbaf939827be8913ab7e18 | |
| parent | 4ed9d54c69f4142d0f7308cd99f8e17d88e49b1b (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 |
