Skip to content

Commit

Permalink
-a and -w for anonymous states and fragment output.
Browse files Browse the repository at this point in the history
  • Loading branch information
katef committed Aug 16, 2024
1 parent 26832cc commit d062ec9
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/rx/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ usage(const char *name)
name = p != NULL ? p + 1 : 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("usage: %s: [-aciQqstuvwx] [-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 @@ -845,8 +845,12 @@ 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:R:stQquvx"), c != -1) {
while (c = getopt(argc, argv, "h" "aC:cd:E:e:ik:F:l:n:r:R:stQquvwx"), c != -1) {
switch (c) {
case 'a':
opt.anonymous_states = false;
break;

case 'C':
charset = optarg;
break;
Expand Down Expand Up @@ -952,6 +956,10 @@ main(int argc, char *argv[])
verbose = true;
break;

case 'w':
opt.fragment = true;
break;

case 'x':
unanchored_literals = true;
break;
Expand Down

0 comments on commit d062ec9

Please sign in to comment.