diff options
| author | J08nY | 2017-08-30 15:59:06 +0200 |
|---|---|---|
| committer | J08nY | 2017-08-30 15:59:06 +0200 |
| commit | 8d2422ced21f204215a904e1a2f6bfbc143bc894 (patch) | |
| tree | 9173722cabbb1523bee1191120cde46a01db1d9e /src/io/cli.c | |
| parent | bc643ab1903239d039f6b9527cb21029a886561d (diff) | |
| download | ecgen-8d2422ced21f204215a904e1a2f6bfbc143bc894.tar.gz ecgen-8d2422ced21f204215a904e1a2f6bfbc143bc894.tar.zst ecgen-8d2422ced21f204215a904e1a2f6bfbc143bc894.zip | |
Diffstat (limited to 'src/io/cli.c')
| -rw-r--r-- | src/io/cli.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/io/cli.c b/src/io/cli.c index 54dfb55..1cbf3b9 100644 --- a/src/io/cli.c +++ b/src/io/cli.c @@ -229,7 +229,7 @@ error_t cli_parse(int key, char *arg, struct argp_state *state) { case ARGP_KEY_END: // validate all option states here. // Only one field - if (!cfg->prime_field && !cfg->binary_field) { + if (cfg->prime_field == cfg->binary_field) { argp_failure(state, 1, 0, "Specify field type, prime or binary, with --fp / " "--f2m (but not both)."); |
