Skip to content
Myr

diagnostics: Provide a hint when match-mode is invalid

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Mark Stosberg · committed by Mark Stosberg · parent 2a81010 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:main.c+1 added-1 removed
1390 unmodified lines
1391 cmdline_overrides.conf.match_mode = MATCH_MODE_FZF;1392 else if (strcmp(optarg, "fuzzy") == 0)1393 cmdline_overrides.conf.match_mode = MATCH_MODE_FUZZY;1394 else {1395 fprintf(stderr, "%s: invalid match-mode\n", optarg);1395 fprintf(stderr, "%s: invalid match-mode. Must be 'exact', 'fuzzy' or 'fzf'\n", optarg);1396 return EXIT_FAILURE;1397 }13981399 cmdline_overrides.match_mode_set = true;
579 unmodified lines