@classmethod
def _add_submit_args(cls, parser):
    """Add arguments to submit sub command to parser."""
    parser.add_argument('flags', type=str, nargs='*', help=
        'Flags to be forwarded to the scheduler.')
    parser.add_argument('--pretend', action='store_true', help=
        'Do not really submit, but print the submission script to screen.')
    parser.add_argument('--force', action='store_true', help=
        'Ignore all warnings and checks, just submit.')
    parser.add_argument('--test', action='store_true', help=
        'Do not interact with the scheduler, implies --pretend.')
    cls._add_operation_selection_arg_group(parser)
    cls._add_operation_bundling_arg_group(parser)
    cls._add_template_arg_group(parser)
