From c3d3648ee469da601c3d2d8c6fb08ef70b73dbc3 Mon Sep 17 00:00:00 2001
From: Recolic Keghart <root@recolic.net>
Date: Mon, 17 Feb 2020 22:18:31 -0800
Subject: [PATCH] add opt_parser.data()

---
 opt.hpp | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/opt.hpp b/opt.hpp
index 7ea0e29..3654fdf 100644
--- a/opt.hpp
+++ b/opt.hpp
@@ -117,6 +117,12 @@ namespace rlib {
         {
             return args.empty();
         }
+
+        // Note that, args data will be erased, once got fetched.
+        const std::vector<std::string> &data() const
+        {
+            return args;
+        }
     private:
         std::vector<std::string> args;
         std::string arg0;
-- 
GitLab