def add_bayes_args(parser):
    """
    Adds longleaf submission arguments to an argparser
    """

    parser.add_argument('--mem', default='8G',
                        help='Memory to allocate for each job.')

    parser.add_argument('--queue', default='w-normal.q',
                        choices=['w-bigmem.q', 'w-normal.q', 'normal.q'],
                        help='Which queue to submit to.')

    parser.add_argument('--time', default=None,
                        help='Time to allocate for the job.')

    parser.add_argument('--node', default=None,
                        help='Which node to use e.g. b34 or b34|b35.')

    parser.add_argument('--n_slots', default=None,
                        help='Number of job slots to request.')

    parser.add_argument('--job_name', default=None,
                        help='Name of the job.')

    parser.add_argument('--submit', action='store_true',
                        help='Whether to submit the script or to just run it.')

    parser.add_argument('--override_submit', action='store_true',
                        help='Do not submit, even if --submit is called.')

    return parser