html-generator-cli --file-name page --html-title "new generator" 写起来有点长,但是用户更清楚他给出的参数是什么,顺序不再起作用,你可以给出一个标题 const args = process.argv; const FILE_NAME_OPTION = '--file-name'; const HTML_TITLE_OPTION = '--html-title fileNameOption}.html` : 'index.html'; let title = titleOption || 'Title'; 现在,我们在参数数组 args 中获得选项 --file-name 或 --html-title html-generator-cli --file-name hello --html-title "CLI helloworld!" 效果 ?
主机名证书 -S HTTP_SERVER, --http-server HTTP_SERVER 服务器Header -t HTML_TITLE, --html-title gasmask.py -i censys -I SAP --report location.country.raw --report_bucket 10 python gasmask.py -i censys --html-title