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}')