This commit is contained in:
Nishi 2026-04-17 22:44:19 +09:00
commit bbc8b871bb
Signed by: nishi
GPG key ID: 27EF69B208EB9343
5 changed files with 54 additions and 4 deletions

View file

@ -5,6 +5,7 @@
#include <fstream>
#include <sstream>
#include <locale>
#include <iostream>
struct typeinfo {
std::string type;
@ -499,7 +500,7 @@ int main(int argc, char** argv) {
int fail = 0;
if(argc < 2) {
printf("Usage: %s XML\n", argv[0]);
std::cerr << "Usage: " + std::string(argv[0]) + " XML" << std::endl;
return 1;
}
@ -558,7 +559,7 @@ int main(int argc, char** argv) {
}
if(fail) {
fprintf(stderr, "Failed to parse XML\n");
std::cerr << "Failed to parse XML" << std::endl;
return 1;
}