mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-23 16:07:52 -05:00
12 lines
279 B
C++
12 lines
279 B
C++
|
#include <iostream>
|
||
|
#include "hash.hpp"
|
||
|
|
||
|
int main(int argc, char** argv) {
|
||
|
if (argc < 2 || !ghc::filesystem::exists(argv[1])) {
|
||
|
std::cout << "Usage: \"checksum <file>\"\n";
|
||
|
return 1;
|
||
|
}
|
||
|
std::cout << calculateHash(argv[1]) << std::endl;
|
||
|
return 0;
|
||
|
}
|