Skip to content

Commit

Permalink
-t for AMBIG_EARLIEST
Browse files Browse the repository at this point in the history
  • Loading branch information
katef committed Aug 16, 2024
1 parent a435074 commit f0fea27
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/rx/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,7 @@ usage(const char *name)
name = p != NULL ? p + 1 : name;
}

printf("usage: %s: [-ciQqsuvx] [-C charset] [-k io] [-l <language> ] [-r dialect] [-R reject] [-d declined-file] [-E <package_prefix>] [-e <prefix>] input-file...\n", name);
printf("usage: %s: [-ciQqstuvx] [-C charset] [-k io] [-l <language> ] [-r dialect] [-R reject] [-d declined-file] [-E <package_prefix>] [-e <prefix>] input-file...\n", name);
printf(" %s -h\n", name);
}

Expand Down Expand Up @@ -844,7 +844,7 @@ main(int argc, char *argv[])
const char *name = argv[0];
int c;

while (c = getopt(argc, argv, "h" "C:cd:E:e:ik:F:l:n:r:sR:Qquvx"), c != -1) {
while (c = getopt(argc, argv, "h" "C:cd:E:e:ik:F:l:n:r:R:stQquvx"), c != -1) {
switch (c) {
case 'C':
charset = optarg;
Expand Down Expand Up @@ -937,6 +937,10 @@ main(int argc, char *argv[])
quiet = true;
break;

case 't':
opt.ambig = AMBIG_EARLIEST;
break;

case 'u':
opt.ambig = AMBIG_MULTIPLE;
break;
Expand Down

0 comments on commit f0fea27

Please sign in to comment.