gpt4 book ai didi

css - 使用 Ruby 命令在 SSH 中生成蓝图 CSS 文件时,选项的正确语法是什么?

转载 作者:行者123 更新时间:2023-11-27 22:36:42 25 4
gpt4 key购买 nike

我需要在 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.

最佳答案

根据用法帮助,我认为您需要指定参数名称,而不是仅仅依赖于它们的位置。您还指定了 -p 参数但未提供元素名称。也许这样的事情对你更有效:

ruby compress.rb -o /var/www/css/blueprint/src/ --column_width=70 --gutter_width=15 --gutter_width=12

关于css - 使用 Ruby 命令在 SSH 中生成蓝图 CSS 文件时,选项的正确语法是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2312156/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com