DatabaseGroup / tree-similarity

Library for tree similarity algorithms and queries.
MIT License
74 stars 14 forks source link

Need basic usage example #22

Closed remz1337 closed 1 year ago

remz1337 commented 1 year ago

I have successfully built the library, and all tests passed. However, I am unable to execute TED, no matter the arguments passed.

Would it be possible to have a very simple example of command line usage?

For example, I tried

./ted {x{a}} {x{b}} -t lgm
./ted '{x{a}}' '{x{b}}' -t lgm
./ted -t lgm '{x{a}}' '{x{b}}'
./ted -t lgm {x{a}} {x{b}}

And I always get the same error: Incorrect format of source tree. Is the number of opening and closing brackets equal?

mateuszpawlik commented 1 year ago

@remz1337, I've seen that in your fork you're working on a proper CLI. We'd be happy to merge it if you'd like.

remz1337 commented 1 year ago

Hmm it was only a quick change I did on my test environment. It uses the cxxopts library (available in vcpkg) to handle command line arguments, so that means anyone that wants to test your program would need to have cxxopts installed on their machine or we need to add vcpkg as a submodule.

If you are willing to support this, then sure I will open a PR with my other branch :)

mateuszpawlik commented 1 year ago

Thanks, I will give it a thought. @thuetter, what's your take on it?

mateuszpawlik commented 1 year ago

I've found a comparison of different Command Line Argument Parsing Libraries if it helps.

thuetter commented 1 year ago

We close it for now and come back to it when extending the command line interface.