| 13 | #include <util/ysaveload.h> |
| 14 | |
| 15 | static NJson::TJsonValue GetOptions(const TString& snapshotPath) { |
| 16 | TFileInput snapshotFile(snapshotPath); |
| 17 | TString label; |
| 18 | TString optionsStr; |
| 19 | ::LoadMany(&snapshotFile, label, optionsStr); |
| 20 | NJson::TJsonValue options; |
| 21 | CB_ENSURE(ReadJsonTree(optionsStr, &options), "Unable to parse options from snapshot"); |
| 22 | return options; |
| 23 | } |
| 24 | |
| 25 | int mode_dump_options(int argc, const char* argv[]) { |
| 26 | auto parser = NLastGetopt::TOpts(); |
no test coverage detected