bugfix: handle help in binomial test
This commit is contained in:
parent
f43036ced6
commit
fff9f023c5
1 changed files with 7 additions and 0 deletions
|
|
@ -53,6 +53,13 @@ int main(int ac, char** av)
|
|||
unsigned int dim = parser.createParam((unsigned int)20, "dim", "Dimension size", 'd', section).value(); // d
|
||||
double proba = parser.createParam((double)0.5, "proba", "Probability to estimate", 'b', section).value(); // b
|
||||
|
||||
if( parser.userNeedsHelp() ) {
|
||||
parser.printHelp(std::cout);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
make_help(parser);
|
||||
|
||||
|
||||
// This generate a random boolean when called...
|
||||
eoBooleanGenerator flip( proba );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue