| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import optparse | 5 import optparse |
| 6 | 6 |
| 7 | 7 |
| 8 def OutputOptions(parser): | 8 def OutputOptions(parser): |
| 9 output_options = optparse.OptionGroup(parser, 'Output options') | 9 output_options = optparse.OptionGroup(parser, 'Output options') |
| 10 output_options.add_option('-o', '--output', help='Save trace output to file.') | 10 output_options.add_option('-o', '--output', dest='output_file', |
| 11 help='Save trace output to file.') |
| 11 output_options.add_option('--json', help='Save trace as raw JSON instead of ' | 12 output_options.add_option('--json', help='Save trace as raw JSON instead of ' |
| 12 'HTML.', action='store_true') | 13 'HTML.', dest='write_json') |
| 13 output_options.add_option('--view', help='Open resulting trace file in a ' | 14 output_options.add_option('--view', help='Open resulting trace file in a ' |
| 14 'browser.', action='store_true') | 15 'browser.', action='store_true') |
| 15 return output_options | 16 return output_options |
| OLD | NEW |