Skip to content

Single-char scheduler options passed through -J are not handled properly #1693

@rsarm

Description

@rsarm

Here opt is the complete option (something like A=usup), not just the flag. The length is not 1, then it never goes to the elif len(opt) == 1 resulting in adding two minuses (--A) when it should be a single one (-A):

        for opt in options.job_options:
            if opt.startswith('-') or opt.startswith('#'):
                parsed_job_options.append(opt)
            elif len(opt) == 1:
                parsed_job_options.append(f'-{opt}')
            else:
                parsed_job_options.append(f'--{opt}')

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions