| Index: tools/chrome_remote_control/chrome_remote_control/browser_options.py
|
| diff --git a/tools/chrome_remote_control/chrome_remote_control/browser_options.py b/tools/chrome_remote_control/chrome_remote_control/browser_options.py
|
| index 500658184e6b3151902bc8da76baf96f227a601b..21487074765347d8e479dc1be1938ce588d13def 100644
|
| --- a/tools/chrome_remote_control/chrome_remote_control/browser_options.py
|
| +++ b/tools/chrome_remote_control/chrome_remote_control/browser_options.py
|
| @@ -74,6 +74,16 @@ class BrowserOptions(optparse.Values):
|
| help='When possible, will display the stdout of the process')
|
| parser.add_option_group(group)
|
|
|
| + # Page set options
|
| + group = optparse.OptionGroup(parser, 'Page set options')
|
| + group.add_option('--record', action='store_true',
|
| + dest='record',
|
| + help='Record to the page set archive')
|
| + group.add_option('--replay', action='store_true',
|
| + dest='replay',
|
| + help='Replay from the page set archive')
|
| + parser.add_option_group(group)
|
| +
|
| # Debugging options
|
| group = optparse.OptionGroup(parser, 'When things go wrong')
|
| group.add_option(
|
| @@ -99,6 +109,9 @@ class BrowserOptions(optparse.Values):
|
|
|
| if self.browser_executable and not self.browser_type:
|
| self.browser_type = 'exact'
|
| + if self.record and self.replay:
|
| + sys.stderr.write('Cannot --record and --replay together\n')
|
| + sys.exit(1)
|
| if not self.browser_executable and not self.browser_type:
|
| sys.stderr.write('Must provide --browser=<type>\n')
|
| sys.exit(1)
|
|
|