summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2019-06-16 22:46:38 -0400
committerTavian Barnes <tavianator@tavianator.com>2019-06-16 22:46:38 -0400
commitb3e536ec24dc091f2e20157d45c3bf7e0190424a (patch)
treef0af343bdc0cc0e011c7f7476e025ff2a66d7a6b
parentcdc4934f57d29cd4b3606eee94e90e85850b268e (diff)
downloadbfs-b3e536ec24dc091f2e20157d45c3bf7e0190424a.tar.xz
parse: Sort the parse table
-rw-r--r--parse.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/parse.c b/parse.c
index 9c8cfc9..1c018be 100644
--- a/parse.c
+++ b/parse.c
@@ -2770,15 +2770,18 @@ struct table_entry {
* The parse table for literals.
*/
static const struct table_entry parse_table[] = {
+ {"--"},
+ {"--help", false, parse_help},
+ {"--version", false, parse_version},
{"-Bmin", false, parse_time, BFS_STAT_BTIME, MINUTES},
{"-Bnewer", false, parse_newer, BFS_STAT_BTIME},
{"-Btime", false, parse_time, BFS_STAT_BTIME, DAYS},
{"-D", false, parse_debug},
{"-E", false, parse_regex_extended},
- {"-O", true, parse_optlevel},
- {"-P", false, parse_follow, 0, false},
{"-H", false, parse_follow, BFTW_COMFOLLOW, false},
{"-L", false, parse_follow, BFTW_LOGICAL, false},
+ {"-O", true, parse_optlevel},
+ {"-P", false, parse_follow, 0, false},
{"-S", false, parse_search_strategy},
{"-X", false, parse_xargs_safe},
{"-a"},
@@ -2790,8 +2793,8 @@ static const struct table_entry parse_table[] = {
{"-capable", false, parse_capable},
{"-cmin", false, parse_time, BFS_STAT_CTIME, MINUTES},
{"-cnewer", false, parse_newer, BFS_STAT_CTIME},
- {"-ctime", false, parse_time, BFS_STAT_CTIME, DAYS},
{"-color", false, parse_color, true},
+ {"-ctime", false, parse_time, BFS_STAT_CTIME, DAYS},
{"-d", false, parse_depth},
{"-daystart", false, parse_daystart},
{"-delete", false, parse_delete},
@@ -2873,9 +2876,6 @@ static const struct table_entry parse_table[] = {
{"-xattr", false, parse_xattr},
{"-xdev", false, parse_mount},
{"-xtype", false, parse_type, true},
- {"--"},
- {"--help", false, parse_help},
- {"--version", false, parse_version},
{0},
};