Open
Description
Description
Passing the -s/--threads
command line option is not range checked. If a value is not provided, we get a logic error thrown instead of a useful error message.
In particular, see
Line 263 in 58f2a21
argv
is accessed out of range when executing something like openmc -s
.
Alternatives
Add a range check when accessing command line arguments to throw a better error.
Compatibility
Improves user experience.
Metadata
Metadata
Assignees
Labels
No labels