Leandros / metareflect

Metareflect is a lightweight reflection system for C++, based on LLVM and Clangs libtooling.
https://arvid.io
MIT License
228 stars 33 forks source link

Not enough positional command line arguments specified error #5

Open AlinMedianu opened 5 years ago

AlinMedianu commented 5 years ago

First of all, I've never used CMake, Clangs libtooling or LLVM, so this error might be an obvious one. I went through the LLVM_SETUP, following all the steps, even adding metareflect/tooling as a subdirectory instead of metareflect/metareflect, generated the project with CMake on windows 10, on visual studio 2019, compiled LLVM, ran it and got this:

LLVM ERROR: CommonOptionsParser: failed to parse command-line arguments. [CommonOptionsParser]: metareflect.exe: Not enough positional command line arguments specified!

Must specify at least 1 positional argument: See: D:\LLVM\build\Debug\bin\metareflect.exe --help

Also, I have set metareflect as the single starting project. Secondly, I really enjoyed your talk at CppCon 2018 and got inspired to try this out. Any help with this would be greatly appreciated. Thanks in advance.

M-Herr commented 3 years ago

If you're still interested, this is caused by not supplying a command line argument (i.e. the file you want parsed) to the metareflect tool. When the tool runs it should look something like

./metareflect.exe