2010-02-22 2 views
0

셸에서 Ruby 명령을 사용하여 기본 청사진 CSS 파일을 생성해야합니다. 그러나 column_width, amount 및 gutter 매개 변수가 누적되지 않습니다. 나는 Ruby 명령으로 SSH에서 Blueprint CSS 파일을 생성 할 때 올바른 옵션 구문은 무엇입니까?

이 올 ... 내가 구문을 이해하지 못하는 생각이 문서에 대한

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. 

답변

1

사용법 도움말에 따라 간단히 위치에 의존하는 대신 인수 이름을 지정해야한다고 생각합니다. 또한 프로젝트 이름을 제공하지 않고 -p 매개 변수를 지정했습니다. 아마도 이와 같은 것이 더 잘 작동 할 것입니다.

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

사실 저로서는 나 일 수 있습니다. 하지만 난 - 칼럼/- 거터 옵션을 사용해야한다고 매우 명확하지 않다는 것을 알았지 만, --output_path 스펙을 사용하면 안된다. 어쨌든 당신의 솔루션은 작동한다. 고마워! – Ropstah

+0

나는 당신이 무엇을 의미 하는지를 잘 모르겠다 ... 짧은 이름 인 -o를 사용하여 --output_path를 지정했다. –