Mercurial > lcfOS
diff python/zcc.py @ 332:87feb8a23b4d
Added task list command
author | Windel Bouwman |
---|---|
date | Fri, 07 Feb 2014 12:51:55 +0100 |
parents | a78b41ff6ad2 |
children | 6f4753202b9a |
line wrap: on
line diff
--- a/python/zcc.py Fri Feb 07 12:39:59 2014 +0100 +++ b/python/zcc.py Fri Feb 07 12:51:55 2014 +0100 @@ -30,6 +30,7 @@ parser.add_argument('--log', help='Log level (INFO,DEBUG,[WARN])', type=logLevel, default='WARN') + parser.add_argument('--display-build-steps', action='store_true') sub_parsers = parser.add_subparsers(title='commands', description='possible commands', dest='command') recipe_parser = sub_parsers.add_parser('recipe', help="Bake recipe") @@ -103,7 +104,11 @@ else: raise NotImplementedError('Invalid option') - res = runner.run_tasks() + if args.display_build_steps: + runner.display() + res = 0 + else: + res = runner.run_tasks() logging.getLogger().removeHandler(ch) return res