简体   繁体   中英

Terminal error with passing parameters

Plato is a JS code complexity analyzer.

The documentation can be found at that link. I cannot get it to run however. It must be a dumb mistake but here is what I have tried.

plato fileX.js -d somename "~/Desktop/"
plato addNewDocPopup.js -d "~/Desktop/"

Amongst many others :) I don't claim to be amazing at the command line but the error I get is:
Must specify a value for option d (dir : The output directory)

I could have sworn that is exactly what I'm doing... Maybe not...

Just a guess but maybe options must come before target file? plato -d ~/Desktop fileX.js . Also, don't put ~/Desktop in double quotes. That will prevent the shell from expanding the ~ into the path to your home directory for you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM