You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
There are (at least) two issues with the option parser.
The last letters in a long option can be omitted and the option is still valid. E.g. --step=21 is the same as --steps=21 or --final-checkpoin=0 is the same as --final-checkpoint=0.
Why is --final-checkpoint an int and not a bool? What does --final-checkpoint=2 mean? If it is boolean, it should (still) work with --final-checkpoint=1|0|True|False.
op->add_option("--final-checkpoint").dest("final-checkpoint").type("int").metavar("(1|0)").set_default(1).help("enable/disable final checkopint (default: %default)");
To Reproduce
Run any simulation and specify one of the options above.
Expected behavior
It should exit with an error if no valid option is passed.
The text was updated successfully, but these errors were encountered:
Describe the bug
There are (at least) two issues with the option parser.
The last letters in a long option can be omitted and the option is still valid. E.g.
--step=21
is the same as--steps=21
or--final-checkpoin=0
is the same as--final-checkpoint=0
.Why is
--final-checkpoint
anint
and not abool
? What does--final-checkpoint=2
mean? If it is boolean, it should (still) work with--final-checkpoint=1|0|True|False
.ls1-mardyn/src/MarDyn.cpp
Line 49 in 87024df
To Reproduce
Run any simulation and specify one of the options above.
Expected behavior
It should exit with an error if no valid option is passed.
The text was updated successfully, but these errors were encountered: