diff options
| author | Mike Schuchardt <mikes@lunarg.com> | 2018-03-09 08:39:43 -0700 |
|---|---|---|
| committer | Mike Schuchardt <mikes@lunarg.com> | 2018-03-09 13:54:31 -0700 |
| commit | a67b097c2a44fbdcdc09e48250b60e7d4458b37f (patch) | |
| tree | e5b135eee7009d694c7adf3e72bbf753d8561175 | |
| parent | 837d5168b1b405ab9c4b3e8390475592e34cc8f3 (diff) | |
| download | usermoji-a67b097c2a44fbdcdc09e48250b60e7d4458b37f.tar.xz | |
scripts: Merge upstream verbosity changes
From Vulkan-Docs /src/spec/genvk.py
| -rw-r--r-- | scripts/lvl_genvk.py | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/scripts/lvl_genvk.py b/scripts/lvl_genvk.py index 8c62432b..37f10acf 100644 --- a/scripts/lvl_genvk.py +++ b/scripts/lvl_genvk.py @@ -1,6 +1,6 @@ #!/usr/bin/python3 # -# Copyright (c) 2013-2017 The Khronos Group Inc. +# Copyright (c) 2013-2018 The Khronos Group Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -93,7 +93,7 @@ def makeGenOpts(args): # Copyright text prefixing all headers (list of strings). prefixStrings = [ '/*', - '** Copyright (c) 2015-2017 The Khronos Group Inc.', + '** Copyright (c) 2015-2018 The Khronos Group Inc.', '**', '** Licensed under the Apache License, Version 2.0 (the "License");', '** you may not use this file except in compliance with the License.', @@ -625,8 +625,10 @@ if __name__ == '__main__': help='Create target and related files in specified directory') parser.add_argument('target', metavar='target', nargs='?', help='Specify target') - parser.add_argument('-quiet', action='store_true', default=False, + parser.add_argument('-quiet', action='store_true', default=True, help='Suppress script output during normal execution.') + parser.add_argument('-verbose', action='store_false', dest='quiet', default=True, + help='Enable script output during normal execution.') args = parser.parse_args() @@ -641,9 +643,12 @@ if __name__ == '__main__': tree = etree.parse(args.registry) endTimer(args.time, '* Time to make ElementTree =') - startTimer(args.time) - reg.loadElementTree(tree) - endTimer(args.time, '* Time to parse ElementTree =') + if args.debug: + pdb.run('reg.loadElementTree(tree)') + else: + startTimer(args.time) + reg.loadElementTree(tree) + endTimer(args.time, '* Time to parse ElementTree =') if (args.validate): reg.validateGroups() |
