#!/usr/bin/ruby -w
# Encoding: UTF-8
# frozen_string_literal: true
# =========================================================================== #
ARGV.each {|this_option|
  case this_option
  # ========================================================================= #
  # === genity --calendar
  # ========================================================================= #
  when /^-?-?calendar/
    require 'gtk_paradise/widgets/gtk3/my_calendar/my_calendar.rb'
    Gtk::MyCalendar.run
  # ========================================================================= #
  # === genity --title="CPU Idle Time"
  # ========================================================================= #
  when /^-?-?title=(.+)$/
    require 'gtk_paradise/require_gtk3'
    require 'gtk_paradise/toplevel_methods/toplevel_methods.rb'
    require 'gtk_paradise/run'
    runner = Gtk.run
    runner << Gtk.default_base_module
    runner.default_width_and_height
    runner.title = $1.to_s
    runner.run
  end
}