Skip to content

Commit 7eccb32

Browse files
committed
enable strict argument parsing, black format
Signed-off-by: Zen <[email protected]>
1 parent 658036f commit 7eccb32

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/ugrd/main.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,20 @@ def main():
131131
"help": "Tests the image with qemu using a specific kernel file.",
132132
},
133133
{"flags": ["--livecd-label"], "action": "store", "help": "Sets the label for the livecd"},
134-
{"flags": ["--force-out"], "action": "store_true", "help": "Force set the output file/dir, do not use a tmpdir."},
134+
{
135+
"flags": ["--force-out"],
136+
"action": "store_true",
137+
"help": "Force set the output file/dir, do not use a tmpdir.",
138+
},
135139
{"flags": ["out_file"], "action": "store", "help": "set the output image location", "nargs": "?"},
136140
]
137141

138142
args, logger = get_args_n_logger(
139-
package=__package__, description="MicrogRAM disk initramfs generator", arguments=arguments, drop_default=True
143+
package=__package__,
144+
description="MicrogRAM disk initramfs generator",
145+
arguments=arguments,
146+
drop_default=True,
147+
strict=True,
140148
)
141149
kwargs = get_kwargs_from_args(args, logger=logger)
142150
kwargs.pop("print_config", None) # This is not a valid kwarg for InitramfsGenerator

0 commit comments

Comments
 (0)