build/openfpgaloader: support args with '-'
many openfpgaloader args have a name with '-' as per normal convention. This kwarg now works: file_type="raw"
This commit is contained in:
parent
afe7b93995
commit
fc85fdd178
|
@ -66,7 +66,7 @@ class OpenFPGALoader(GenericProgrammer):
|
|||
|
||||
# Handle kwargs for specific, less common cases.
|
||||
for key, value in kwargs.items():
|
||||
cmd.append(f"--{key}")
|
||||
cmd.append(f"--{key.replace('_', '-')}")
|
||||
if value is not None:
|
||||
cmd.append(str(value))
|
||||
|
||||
|
|
Loading…
Reference in New Issue