Add --raw and --context again.

Forgot to re-implement them when I overhauled the option parsing…
This commit is contained in:
tastytea 2021-05-27 21:01:07 +02:00
parent 8d5565a72c
commit 2b91a839cc
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 5 additions and 0 deletions

View File

@ -194,6 +194,11 @@ options parse_again(const po::variables_map &vm)
}
opts.grep = vm.count("grep") > 0;
opts.ignore_case = vm.count("ignore-case") > 0;
opts.raw = vm.count("raw") > 0;
if (vm.count("context") > 0)
{
opts.context = vm["context"].as<std::uint64_t>();
}
opts.nocolor = vm.count("nocolor") > 0;
if (vm.count("no-filename") > 0)
{