classifychars.cpp return non-zero exit code on error

This commit is contained in:
nineArif
2016-05-25 15:02:19 +07:00
parent 7e111e3fd9
commit 991bd95dbf

View File

@@ -94,13 +94,13 @@ int main( int argc, const char** argv )
{
printf("Use:\n\t%s country indirectory outdirectory\n",argv[0]);
printf("Ex: \n\t%s eu ./pics/ ./out\n",argv[0]);
return 0;
return 1;
}
if (DirectoryExists(outDir.c_str()) == false)
{
printf("Output dir does not exist\n");
return 0;
return 2;
}
cout << "Usage: " << endl;