#!/usr/bin/env vpython3
# Copyright 2015 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.


def AddBenchmarkCommandLineArgs(parser):
  parser.add_argument('--user-agent', help='Options are mobile and desktop.')
  parser.add_argument(
    '--archive-data-file', help='The location of the WPR JSON archive file.'
  )
  parser.add_argument(
    '--urls-list',
    help=(
      'This is a comma separated list of urls. '
      'Eg: http://www.google.com,http://www.gmail.com'
    ),
  )


def ValidateCommandLineArgs(parser, args):
  if not args.user_agent:
    parser.error('Please specify --user-agent.')
  if not args.archive_data_file and not args.use_live_sites:
    parser.error('Please specify --archive-data-file.')
  if not args.urls_list:
    parser.error('Please specify --urls-list.')
