diff options
author | Tim Segers <tsegers@pm.me> | 2022-10-14 17:46:07 +0200 |
---|---|---|
committer | Tim Segers <tsegers@pm.me> | 2022-10-14 17:46:07 +0200 |
commit | 06e9e0d0df237e3d505d908ccf264091b440e066 (patch) | |
tree | 05dcf1ccbb4eea725b220e57e2a7f55408e21cc7 /src/opendeco.c | |
parent | 9ec5076b0f891b1dea64d165e622841ef4dfb1c0 (diff) | |
download | opendeco-06e9e0d0df237e3d505d908ccf264091b440e066.tar.gz |
Add requirement that GF Low not be greater than GF High
Diffstat (limited to 'src/opendeco.c')
-rw-r--r-- | src/opendeco.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/opendeco.c b/src/opendeco.c index ae95f58..5051633 100644 --- a/src/opendeco.c +++ b/src/opendeco.c @@ -98,6 +98,10 @@ static error_t parse_opt(int key, char *arg, struct argp_state *state) argp_failure(state, 1, 0, "Surface air pressure must be positive. See --help for more information"); exit(ARGP_ERR_UNKNOWN); } + if (arguments->gflow > arguments->gfhigh) { + argp_failure(state, 1, 0, "GF Low must not be greater than GF High"); + exit(ARGP_ERR_UNKNOWN); + } default: return ARGP_ERR_UNKNOWN; } |