From 2b91a839cc168d8a05197286a8a14c7f73c09d58 Mon Sep 17 00:00:00 2001 From: tastytea Date: Thu, 27 May 2021 21:01:07 +0200 Subject: [PATCH] Add --raw and --context again. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Forgot to re-implement them when I overhauled the option parsing… --- src/options.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/options.cpp b/src/options.cpp index dedf331..ca19743 100644 --- a/src/options.cpp +++ b/src/options.cpp @@ -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(); + } opts.nocolor = vm.count("nocolor") > 0; if (vm.count("no-filename") > 0) {