20 lines
No EOL
370 B
C++
20 lines
No EOL
370 B
C++
#include<version.h>
|
|
#include<string>
|
|
#include<filesystem>
|
|
#include<iostream>
|
|
using namespace std;
|
|
int main(int argc, char* argv[])
|
|
{
|
|
for(int i=1;i<argc;i++){
|
|
if (string(argv[i]) == "-v")
|
|
{
|
|
cout<<"patricus utils, version "+string(VERSION);
|
|
}
|
|
if(!filesystem::exists(argv[i]))
|
|
{
|
|
cerr<<"error, no such file or directory";
|
|
return 1;
|
|
}
|
|
filesystem::remove_all(argv[i]);
|
|
}
|
|
} |