It's not easy to detect whether the input is correct or not. The user needs to check the result. Either there is the expected result or it is empty.

But I think it's good enough, this tool is intended for developers (that's why it is in devtools and not some standard package) and supposed to be used just once for the conversion, then you should replace the YCP file in Git by the YML file and don't care anymore.

It is not worth making it bullet proof, it should be a simple, single purpose tool. For the few files we have it's OK,