summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2020-04-01 23:33:52 +0200
committerGitHub <[email protected]>2020-04-01 23:33:52 +0200
commit4289553b2b5c6d1f4b3e5ed3c0b26efa17b4fd19 (patch)
treee4ebf5e70090c494b9c246434a92e363ed68cb4d
parent993f79072d56c24639f6c787c4999ffaf3d9e16d (diff)
downloadSTC-modified-4289553b2b5c6d1f4b3e5ed3c0b26efa17b4fd19.tar.gz
STC-modified-4289553b2b5c6d1f4b3e5ed3c0b26efa17b4fd19.zip
Add files via upload
-rw-r--r--ccl/copt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ccl/copt.h b/ccl/copt.h
index 5777810e..fb810e10 100644
--- a/ccl/copt.h
+++ b/ccl/copt.h
@@ -163,7 +163,7 @@ static int copt_getopt(copt_t *opt, int argc, char *argv[],
printf("program -x -y ARG -z [ARG] -1 -2 -3 --foo --bar ARG --opt [ARG] [ARGUMENTS]\n");
int c;
copt_t opt = copt_init;
- while ((c = copt_getopt(&opt, argc, argv, optstr, longopts, true)) != -1) {
+ while ((c = copt_getopt(&opt, argc, argv, optstr, longopts, false)) != -1) {
switch (c) {
case '?': printf("error: unknown option: %s\n", opt.bad); break;
case ':': printf("error: missing argument for %s\n", opt.bad); break;