Class: Slideshow::Opts

Inherits:
Object
  • Object
show all
Defined in:
lib/slideshow/cli/opts.rb

Instance Method Summary collapse

Instance Method Details

#merge_gli_options!(options = {}) ⇒ Object



11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/slideshow/cli/opts.rb', line 11

def merge_gli_options!( options={} )
  @header_level = 1   if options[:h1] == true
  @header_level = 2   if options[:h2] == true

  @slide     = true   if options[:slide] == true
  @takahashi = true   if options[:slide] == true

  @verbose = true     if options[:verbose] == true

  @fetch_all = true   if options[:all] == true

  @config_path = options[:config]    if options[:config].present?
  @output_path = options[:output]    if options[:output].present?

  @manifest       =   options[:template]  if options[:template].present?
  
  ## Note: will use :template option too
  @quick_manifest =   options[:template]  if options[:template].present?
end