Skip to content

Commit

Permalink
docs: show options of match mode before graph mode
Browse files Browse the repository at this point in the history
Because the match mode is the default mode.
  • Loading branch information
Lai-YT committed Aug 2, 2023
1 parent 7699965 commit 41670a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/messages.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ void description() {
"Supports . ( ) | * + ?. No escapes.\n"
"Compiles to NFA and then simulates NFA using Thompson's algorithm.\n"
"\n"
"One can either graph the regexp or match a string.\n"
"One can either match a string (default) or graph the regexp.\n"
"See the following options.\n"
"Notice that character # can't appear in the regular expression,\n"
"it's reserved technically as the special character.\n"
Expand Down Expand Up @@ -91,8 +91,8 @@ void options() {
" -V, --version Shows %s version and exit\n"
"\n" NO_COLOR,
PROGRAM_NAME);
graph_mode();
match_mode();
graph_mode();
}

/*
Expand Down

0 comments on commit 41670a2

Please sign in to comment.