使用 Ruby 命令在 SSH 中生成蓝图 CSS 文件时,选项的正确语法是什么?
我需要在 Shell 中使用 Ruby 命令生成默认的蓝图 CSS 文件。然而,column_width、amount 和 gutter 参数并没有达到要求。我想我不明白语法...
这是否正确:
ruby compress.rb -o /var/www/css/blueprint/src/ -p 70 15 12
?
本文档的
joshua-claytons-computer:lib joshuaclayton$ ruby compress.rb -h
Usage: compress.rb [options]
Blueprint Compressor
options
-o, --output_path=OUTPUT_PATH Define a different path to output generated CSS files to.
-n, --namespace=BP_NAMESPACE Define a namespace prepended to all Blueprint classes (e.g. .your-ns-span-24)
-p, --project=PROJECT_NAME If using the settings.yml file, PROJECT_NAME is the project name you want to export
--column_width=COLUMN_WIDTH Set a new column width (in pixels) for the output grid
--gutter_width=GUTTER_WIDTH Set a new gutter width (in pixels) for the output grid
--column_count=COLUMN_COUNT Set a new column count for the output grid
-h, --help Show this help message.
I need to generate default Blueprint CSS files using a Ruby command in the Shell. However the column_width, amount and gutter parameters aren't coming trough. I think i don't understand the syntax...
is this correct:
ruby compress.rb -o /var/www/css/blueprint/src/ -p 70 15 12
for this documentation?
joshua-claytons-computer:lib joshuaclayton$ ruby compress.rb -h
Usage: compress.rb [options]
Blueprint Compressor
options
-o, --output_path=OUTPUT_PATH Define a different path to output generated CSS files to.
-n, --namespace=BP_NAMESPACE Define a namespace prepended to all Blueprint classes (e.g. .your-ns-span-24)
-p, --project=PROJECT_NAME If using the settings.yml file, PROJECT_NAME is the project name you want to export
--column_width=COLUMN_WIDTH Set a new column width (in pixels) for the output grid
--gutter_width=GUTTER_WIDTH Set a new gutter width (in pixels) for the output grid
--column_count=COLUMN_COUNT Set a new column count for the output grid
-h, --help Show this help message.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据使用帮助,我认为您需要指定参数名称,而不是简单地依赖它们的位置。您还指定了 -p 参数,但没有提供项目名称。也许这样的事情对你来说会更有效:
Based on the usage help I think you will need to specify the argument names instead of relying simply on their position. Also you specified the -p parameter without providing a project name. Perhaps something like this will work better for you: