Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not enough positional command line arguments specified error #5

Open
AlinMedianu opened this issue May 20, 2019 · 1 comment
Open

Comments

@AlinMedianu
Copy link

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
Copy link

M-Herr commented Jan 31, 2021

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 <path_to_file>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants