summaryrefslogtreecommitdiff
path: root/cli/options.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-07-27 17:28:27 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-07-27 17:28:27 +0200
commit8c1e0035404050376350d5e9b9242f5d39a6b53e (patch)
tree1aa609d156a4e0c131caf40c2d070d20b304bdbf /cli/options.hxx
parentdca38b27afc25d329fd7a7241095b40e2a1ecae2 (diff)
Add support for direct file loading with argv_file_scanner
Diffstat (limited to 'cli/options.hxx')
-rw-r--r--cli/options.hxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/cli/options.hxx b/cli/options.hxx
index 9f5124f..a865148 100644
--- a/cli/options.hxx
+++ b/cli/options.hxx
@@ -296,6 +296,9 @@ namespace cli
const std::string& option,
bool erase = false);
+ argv_file_scanner (const std::string& file,
+ const std::string& option);
+
struct option_info
{
// If search_func is not NULL, it is called, with the arg
@@ -320,6 +323,10 @@ namespace cli
std::size_t options_count,
bool erase = false);
+ argv_file_scanner (const std::string& file,
+ const option_info* options = 0,
+ std::size_t options_count = 0);
+
virtual bool
more ();
@@ -354,6 +361,8 @@ namespace cli
std::size_t i_;
bool skip_;
+
+ static int zero_argc_;
};
template <typename X>