Skip to content

Commit

Permalink
-X for always_hex
Browse files Browse the repository at this point in the history
  • Loading branch information
katef committed Aug 16, 2024
1 parent d062ec9 commit 5e10440
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 @@ -791,7 +791,7 @@ usage(const char *name)
name = p != NULL ? p + 1 : 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("usage: %s: [-aciQqstuvwXx] [-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,7 +845,7 @@ main(int argc, char *argv[])
const char *name = argv[0];
int c;

while (c = getopt(argc, argv, "h" "aC:cd:E:e:ik:F:l:n:r:R:stQquvwx"), c != -1) {
while (c = getopt(argc, argv, "h" "aC:cd:E:e:ik:F:l:n:r:R:stQquvwXx"), c != -1) {
switch (c) {
case 'a':
opt.anonymous_states = false;
Expand Down Expand Up @@ -960,6 +960,10 @@ main(int argc, char *argv[])
opt.fragment = true;
break;

case 'X':
opt.always_hex = true;
break;

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

0 comments on commit 5e10440

Please sign in to comment.