| OLD | NEW |
| (Empty) | |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 """Generate a new tool in infra/tools.""" |
| 6 |
| 7 import argparse |
| 8 import sys |
| 9 |
| 10 from infra.tools.new_tool import new_tool |
| 11 |
| 12 |
| 13 def main(argv): |
| 14 parser = argparse.ArgumentParser( |
| 15 prog='new_tool', |
| 16 description=sys.modules['__main__'].__doc__) |
| 17 new_tool.add_argparse_options(parser) |
| 18 args = parser.parse_args(argv) |
| 19 |
| 20 return new_tool.generate_tool_files(args.name[0], args.base_dir) |
| 21 |
| 22 |
| 23 if __name__ == '__main__': |
| 24 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |