Skip to content

Commit

Permalink
Use case-insensitive matching for the gravity subcommands
Browse files Browse the repository at this point in the history
Signed-off-by: DL6ER <[email protected]>
  • Loading branch information
DL6ER committed Nov 28, 2023
1 parent e441769 commit 3eb0e51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/args.c
Original file line number Diff line number Diff line change
Expand Up @@ -388,14 +388,14 @@ void parse_args(int argc, char* argv[])
const bool antigravity = strcmp(argv[1], "antigravity") == 0;

// pihole-FTL gravity parseList <infile> <outfile> <adlistID>
if(argc == 6 && strcmp(argv[2], "parseList") == 0)
if(argc == 6 && strcasecmp(argv[2], "parseList") == 0)
{
// Parse the given list and write the result to the given file
exit(gravity_parseList(argv[3], argv[4], argv[5], false, antigravity));
}

// pihole-FTL gravity checkList <infile>
if(argc == 4 && strcmp(argv[2], "checkList") == 0)
if(argc == 4 && strcasecmp(argv[2], "checkList") == 0)
{
// Parse the given list and write the result to the given file
exit(gravity_parseList(argv[3], "", "-1", true, antigravity));
Expand Down

0 comments on commit 3eb0e51

Please sign in to comment.