-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrbt
More file actions
24 lines (23 loc) · 864 Bytes
/
rbt
File metadata and controls
24 lines (23 loc) · 864 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/ruby -w
# Encoding: UTF-8
# frozen_string_literal: true
# =========================================================================== #
require 'rbt/constants/constants.rb'
require 'rbt/requires/require_the_installer_class.rb'
first_argument = ARGV.first
if RBT::ARRAY_HELP_OPTIONS.include?(first_argument)
RBT::Action::Installer.display_standard_help_options
else
case first_argument
# ========================================================================= #
# === rbt --version
# ========================================================================= #
when *RBT::ARRAY_HELP_VERSION_OPTIONS
require 'rbt/version/version.rb'
RBT.report_rbt_version(:also_show_when_the_project_was_last_updated)
exit
else # this is the default clause.
require 'rbt/commandline/commandline.rb'
RBT::Commandline.new(ARGV)
end
end