feat(Tools): Automatically create directories for tools (#11540)

* .

* .
This commit is contained in:
IntelligentQuantum
2022-04-28 00:27:21 +04:30
committed by GitHub
parent b7be09e96c
commit ad8f8ee5a5
3 changed files with 14 additions and 7 deletions

View File

@@ -22,14 +22,21 @@
int main(int argc, char* argv[])
{
if (argc != 3)
std::string src = "Buildings";
std::string dest = "vmaps";
if (argc > 3)
{
std::cout << "usage: " << argv[0] << " <raw data dir> <vmap dest dir>" << std::endl;
return 1;
}
std::string src = argv[1];
std::string dest = argv[2];
else
{
if (argc > 1)
src = argv[1];
if (argc > 2)
dest = argv[2];
}
std::cout << "using " << src << " as source directory and writing output to " << dest << std::endl;