addCommandLineParam<MooseEnum> doesn't work as intended #26194
Labels
C: Framework
P: normal
A defect affecting operation with a low possibility of significantly affects.
T: defect
An anomaly, which is anything that deviates from expectations.
Bug Description
When a MooseEnum type variable is used in
params.addCommandLineParam<MooseEnum>
, it seems that the command line argument cannot be properly recognized; always the default value is used no matter what value is typed in via the command line argument. Onlyparams.addCommandLineParam<std::string>
works as intended.Steps to Reproduce
For a code snippet below,
where
Running below gives me
a
in thetest
variable. No matter what value is given in the command argument, always the default value is written totest
.The way to get it to work as intended is to accept the variable using the string as below.
The text was updated successfully, but these errors were encountered: