Sha256: 6e08ca31474ed59bc8934d32398ef2fc0f0b8b5f8bbd83a9905614f71af28c43
Contents?: true
Size: 1.12 KB
Versions: 2
Compression:
Stored size: 1.12 KB
Contents
#!/usr/bin/env ruby require 'rubygems' require 'bundler/setup' # require your gems as usual require 'require_all' require 'trollop' require_all 'lib' opts = Trollop::options do opt :file_name, "File Name", :type => :string, :default => "dotgrid.pdf" opt :dot_grid, "Add a Dot Grid Page", default: true opt :dot_weight, "Dot Weight", :type => :float, :default => 1.5 opt :margin, "Border", :type => :float, :default => 0.5 opt :page_size, "Page Size (LEGAL, LETTER)", :type => :string, :default => "LETTER" opt :grid_color, "Grid Color (RGB)", :type => :string, :default => "B3B3B3" opt :spacing, "Dot Spacing (mm)", :type => :integer, :default => 5 opt :pages, "Number of pages", :type => :integer, :default => 1 opt :planner, "Add a Planner Page" opt :grid, "Add a Regular Grid page" opt :horizontal_rule, "Add a Horizontal Rule page" opt :checkerboard, "Add a Checkerboard page" opt :planner_color_1, "Planner Left and Footer color", type: :string, default: "CCCCCC" opt :planner_color_2, "Planner Right color", type: :string, default: "0099ff" end dot_grid_generator = DotGrid::Generator.new(opts).generate
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dot_grid-0.0.5 | bin/dotgrid |
dot_grid-0.0.4 | bin/dotgrid |