简体   繁体   English

传递参数的终端错误

[英]Terminal error with passing parameters

Plato is a JS code complexity analyzer. Plato是一个JS代码复杂度分析器。

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 . plato -d ~/Desktop fileX.js Also, don't put ~/Desktop in double quotes. 另外,不要将~/Desktop放在双引号中。 That will prevent the shell from expanding the ~ into the path to your home directory for you. 这将阻止shell将~扩展到您的主目录路径。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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