Parse command line options.

def parse_args(argv=None):
    """Parse command line options."""
    parser = ArgumentParser()
    parser.add_argument('--replay-file', dest="replay_file", type=str, required=True)

    options = parser.parse_args(argv)
    return options