Sha256: f74828e65a8150d1a0868ffa27803f5600fb350b2fdb36e649c8c1a4b6e5833b
Contents?: true
Size: 1.12 KB
Versions: 1
Compression:
Stored size: 1.12 KB
Contents
require 'trollop' module DotGrid class CLI def self.execute(argv) opts = Trollop::options argv do version "dot_grid #{DotGrid::VERSION}" opt :file_name, "File Name", :type => :string, :default => "dotgrid.pdf" opt :orientation, "Orientation of pages (portrait/landscape)", type: :string, default: "portrait" opt :page_types, "Types of pages desired: Types of pages desired: DotGrid, Planner, Grid, HorizontalRule, Checkerboard", type: :string, default: "Planner" opt :dot_weight, "Dot Weight", :type => :float, :default => 1.5 opt :margin, "Border", :type => :float, :default => 0.0 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 :planner_color_1, "Planner Left and Footer color", type: :string, default: "CCCCCC" opt :planner_color_2, "Planner Right color", type: :string, default: "0099ff" end DotGrid::Generator.new(opts).generate end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dot_grid-0.0.9 | lib/dot_grid/cli.rb |