Skip to content

Segmentation fault when using incorrect CLI arguments #16

Open
@aminya

Description

@aminya

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions