mirror of
https://github.com/geode-sdk/geode.git
synced 2025-03-25 04:11:42 -04:00
neater
This commit is contained in:
parent
07e36ceaf1
commit
1df4c898ac
1 changed files with 3 additions and 3 deletions
|
@ -1,11 +1,11 @@
|
|||
#include <iostream>
|
||||
#include "hash.hpp"
|
||||
|
||||
int main(int ac, char* av[]) {
|
||||
if (ac < 2) {
|
||||
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(av[1]) << std::hex;
|
||||
std::cout << calculateHash(argv[1]) << std::endl;
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue