def generate_sa_sizes_cmd(sa_sizes):
    """ Generate the command line argument to specify the sa_sizes.

    Concatenate each size in the sa_sizes to generate the final argument.

    Parameters
    ----------
    sa_sizes: list
        A list containing the sizes for each optimization stage.
    """
    length = len(sa_sizes)
    first = 1
    cmd = '--sa-sizes="{'
    for size in sa_sizes:
        if not first:
            cmd += ';'
        cmd += size
        first = 0

    cmd += '}"'
    return cmd