diff --git a/barretenberg/cpp/src/barretenberg/bb/main.cpp b/barretenberg/cpp/src/barretenberg/bb/main.cpp index 2eae122b471..72f0a95990c 100644 --- a/barretenberg/cpp/src/barretenberg/bb/main.cpp +++ b/barretenberg/cpp/src/barretenberg/bb/main.cpp @@ -332,6 +332,14 @@ int main(int argc, char* argv[]) std::string vk_path = getOption(args, "-k", "./target/vk"); CRS_PATH = getOption(args, "-c", "./crs"); bool recursive = flagPresent(args, "-r") || flagPresent(args, "--recursive"); + + // Skip CRS initialization for any command which doesn't require the CRS. + if (command == "info") { + std::string output_path = getOption(args, "-o", "info.json"); + acvmInfo(output_path); + return 0; + } + init(); if (command == "prove_and_verify") { @@ -355,9 +363,6 @@ int main(int argc, char* argv[]) } else if (command == "vk_as_fields") { std::string output_path = getOption(args, "-o", vk_path + "_fields.json"); vkAsFields(vk_path, output_path); - } else if (command == "info") { - std::string output_path = getOption(args, "-o", "info.json"); - acvmInfo(output_path); } else { std::cerr << "Unknown command: " << command << "\n"; return 1;