extractor: split up extraction process and allow overriding data dir path (#1302)

* extractor: split up extraction process and allow overriding `data` dir path

* lint: formatting

* deps: add CLI11 dependency

* extractor: refactor CLI arg handling
This commit is contained in:
Tyler Wilding
2022-04-15 18:01:47 -04:00
committed by GitHub
parent 9168e20e18
commit ab063bf7b0
11 changed files with 9338 additions and 40 deletions
+1 -1
View File
@@ -15,7 +15,7 @@
int main(int argc, char** argv) {
fmt::print("[Mem] Top of main: {} MB\n", get_peak_rss() / (1024 * 1024));
using namespace decompiler;
if (!file_util::setup_project_path()) {
if (!file_util::setup_project_path(std::nullopt)) {
return 1;
}
lg::set_file(file_util::get_file_path({"log/decompiler.txt"}));