This commit is contained in:
blueloveTH 2023-03-27 13:40:41 +08:00
parent dc72796e2c
commit d25e27df4a

View File

@ -63,6 +63,7 @@ int main(int argc, char** argv){
if(argv_1 == "-h" || argv_1 == "--help") goto __HELP;
std::filesystem::path filepath(argv[1]);
filepath = std::filesystem::absolute(filepath);
if(!std::filesystem::exists(filepath)){
std::cerr << "File not found: " << argv_1 << std::endl;
return 1;