diff options
| author | J08nY | 2018-07-09 21:22:53 +0200 |
|---|---|---|
| committer | J08nY | 2018-07-09 21:22:53 +0200 |
| commit | 1be7218990f93c442fa71a073ab16e862092b205 (patch) | |
| tree | 641c2aaa240cd9df5c19f32807ac38036471e127 /src/ecgen.c | |
| parent | 0c97ff4a611c19efbd383f1a5ad63f3d26d3c627 (diff) | |
| download | ecgen-1be7218990f93c442fa71a073ab16e862092b205.tar.gz ecgen-1be7218990f93c442fa71a073ab16e862092b205.tar.zst ecgen-1be7218990f93c442fa71a073ab16e862092b205.zip | |
Diffstat (limited to 'src/ecgen.c')
| -rw-r--r-- | src/ecgen.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ecgen.c b/src/ecgen.c index 76fae79..b3a2190 100644 --- a/src/ecgen.c +++ b/src/ecgen.c @@ -141,7 +141,6 @@ int quit(int status) { * */ int main(int argc, char *argv[]) { - // Parse cli args memset(cfg, 0, sizeof(config_t)); argp_parse(&argp, argc, argv, 0, 0, cfg); @@ -150,12 +149,14 @@ int main(int argc, char *argv[]) { } int status; - if (cfg->method == METHOD_CM) { + if (cfg->method == METHOD_CM || cfg->method == METHOD_ANOMALOUS || + cfg->method == METHOD_SUPERSINGULAR) { status = cm_do(); } else if (cfg->method == METHOD_INVALID) { status = invalid_do(); } else { status = exhaustive_do(); } + return quit(status); } |
