def add_longleaf_args(parser):
    """
    Adds longleaf submission arguments to an argparser
    """
    parser.add_argument('--time', default='12:00:00',
                        help='Time to allocate for the job.')

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

    parser.add_argument('--ntasks', default=8,
                        help='Number of tasks.')

    parser.add_argument('--nodes', default=1,
                        help='Number of nodes.')

    parser.add_argument('--exclusive', action='store_true', default=False,
                        help='Gets whole node to myself.')

    parser.add_argument('--partition', default='general',
                        choices=['gpu', 'general', 'volta', 'bigmem'],
                        help='Which partition to run on.')

    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