diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2021-08-06 09:35:14 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2021-08-06 09:35:14 +0200 |
commit | 3a356916cd43861ac4316c1ccaffbdad787abc94 (patch) | |
tree | 8b8d1d9f6e651b53dc6d59d67f08d25fd0bc0f26 /odb/odb.cxx | |
parent | 4239f1ad4223e7ad834507a0c0b5f94d36461e3d (diff) |
Parse default options file directly using new argv_file_scanner ctor
Diffstat (limited to 'odb/odb.cxx')
-rw-r--r-- | odb/odb.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/odb/odb.cxx b/odb/odb.cxx index 7d3e871..8ccb2d7 100644 --- a/odb/odb.cxx +++ b/odb/odb.cxx @@ -271,9 +271,7 @@ main (int argc, char* argv[]) file = dd / file; // For diagnostics. } - int ac (3); - const char* av[4] = {argv[0], "--file", file.string ().c_str (), 0}; - cli::argv_file_scanner s (ac, const_cast<char**> (av), "--file"); + cli::argv_file_scanner s (file.string ()); bool first_x (true); |