diff options
| author | Tyge Løvset <[email protected]> | 2020-04-01 23:33:52 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-04-01 23:33:52 +0200 |
| commit | 4289553b2b5c6d1f4b3e5ed3c0b26efa17b4fd19 (patch) | |
| tree | e4ebf5e70090c494b9c246434a92e363ed68cb4d | |
| parent | 993f79072d56c24639f6c787c4999ffaf3d9e16d (diff) | |
| download | STC-modified-4289553b2b5c6d1f4b3e5ed3c0b26efa17b4fd19.tar.gz STC-modified-4289553b2b5c6d1f4b3e5ed3c0b26efa17b4fd19.zip | |
Add files via upload
| -rw-r--r-- | ccl/copt.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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;
|
