json2cpp icon indicating copy to clipboard operation
json2cpp copied to clipboard

Segmentation fault when using incorrect CLI arguments

Open aminya opened this issue 1 year ago • 0 comments

I tried to use the CLI via these arguments as I didn't know what the expected inputs because of lack of an example or docs are.

./json2cpp test ./test.json ./test.cpp

It seems the third argument is incorrect as it should be a name. The arguments need to be validated to prevent segmentation faults. Also, it would be useful to have more documentation.

The correct way to use the CLI is

./json2cpp test ./test.json test

aminya avatar Apr 22 '24 05:04 aminya