geode/loader/hash/hash.cpp

12 lines
290 B
C++
Raw Normal View History

#include <iostream>
#include "hash.hpp"
2022-10-14 18:09:33 -04:00
int main(int argc, char** argv) {
if (argc < 2 || !ghc::filesystem::exists(argv[1])) {
std::cout << "Usage: \"checksum <file>\"\n";
return 1;
}
2022-10-14 18:09:33 -04:00
std::cout << calculateHash(argv[1]) << std::endl;
return 0;
}