diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -74,10 +74,10 @@ main(int argc, char **argv) optparser_t parser = mkoptparser(argv); static const cli_opt_t opts[] = { + {'b', U8C("byte-offset"), CLI_NONE}, {'c', U8C("color"), CLI_NONE}, {'h', U8C("help"), CLI_NONE}, {'i', U8C("ignore-case"), CLI_NONE}, - {'l', U8C("line"), CLI_NONE}, {'p', U8C("predicate"), CLI_NONE}, {'s', U8C("strip-newline"), CLI_NONE}, {'U', U8C("no-unicode"), CLI_NONE}, @@ -89,6 +89,9 @@ main(int argc, char **argv) if (opt == 0) break; switch (opt) { + case 'b': + flags.b = true; + break; case 'c': flags.c = true; break; @@ -98,9 +101,6 @@ main(int argc, char **argv) case 'i': flags.i = true; break; - case 'l': - flags.l = true; - break; case 'p': flags.p = true; break; @@ -137,7 +137,7 @@ main(int argc, char **argv) if (argc == 0) { usage: - usage("[-p | -s | -z] [-cilU] pattern [file ...]", "-h"); + usage("[-p | -s | -z] [-bciU] pattern [file ...]", "-h"); exit(EXIT_FATAL); } |