def parse_arguments():
    """Reads the arguments passed from command line.

    Command line Args:
      --json-config (str): Compulsory argument. The path to the JSON
      configuration file.
      --serial-requests (bool): Optional argument. Defines if the requests
      will be sent from the master to the workers parallely, simultaneusly to
      all workers, or serially, one worker each time.

    Returns:
      collection: An object containing the values of all arguments.
    """
    parser = argparse.ArgumentParser(formatter_class=argparse.RawTextHelpFormatter)

    parser.add_argument('--json-config',
                        required=True,
                        type=str,
                        dest='json_config',
                        action='store',
                        help='Configuration file (JSON)')

    parser.add_argument('--serial-requests',
                        required=False,
                        dest='is_serial',
                        action='store_true',
                        default=False,
                        help='Is request in serial execution mode')

    args = parser.parse_args()
    return args