[英]-s flag on rails generate model
I ran across a tutorial that had the following syntax: 我遇到了一个具有以下语法的教程:
rails generate model User name:string -s
What is the -s
for? -s
是什么意思?
Thanks 谢谢
Typing in rails generate model --help
would give you the answer you need: 输入
rails generate model --help
将为您提供所需的答案:
Runtime options:
-f, [--force] # Overwrite files that already exist
-p, [--pretend] # Run but do not make any changes
-q, [--quiet] # Supress status output
-s, [--skip] # Skip files that already exist
On the last part you see: 在最后一部分,您将看到:
Skip files that already exist
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.