bash 命令 python3 ./deployment/generators/generatePKGlist.py --file app-pkg.yml 的含义是什么
我试图理解 bash 脚本之一中的以下行
python3 ./deployment/generators/generatePKGlist.py --file app-pkg.yml
,特别是上面一行中的“--file app-pkg.yml”是什么意思?
I am trying to make sense of following line in one of the bash script
python3 ./deployment/generators/generatePKGlist.py --file app-pkg.yml
Specially, What is meaning of '--file app-pkg.yml' in above line?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
它运行 python 模块,并将 --file 作为键和 app-pkg.yml 作为文件的值传递给该模块(./deployment/generators/generatePKGlist.py)作为运行该模块的参数。
It runs the python module and passes the --file as key and app-pkg.yml as the value of the file to that module(./deployment/generators/generatePKGlist.py) as a parameter for running the module.
它正在运行 python 脚本
generatePKGlist.py
并传递命令行参数--file app-pkg.yml
。当您标记
unix
时,具有相应的 shebang 和对文件的正确执行权限使得指定解释器变得不必要。验证 shebang 是否存在或添加它(第一行)
,然后
你可以运行
It's running the python script
generatePKGlist.py
passing command line arguments--file app-pkg.yml
.As you tagged
unix
, having the corresponding shebang and correct execution permission on the file turns specifying the interpreter unnecessary.Verify if the shebang is there or add it otherwise (first line)
and
then you can just run