Method: Blufin::Terminal.arg_instructions
- Defined in:
- lib/core/terminal.rb
.arg_instructions(arg_descriptions, preceding_blank_line = true) ⇒ Object
Displays warning message.
217 218 219 220 221 222 223 |
# File 'lib/core/terminal.rb', line 217 def self.arg_instructions(arg_descriptions, preceding_blank_line = true) puts if preceding_blank_line puts " \x1B[38;5;231m\x1B[48;5;22m Instructions \x1B[0m \xe2\x86\x92 This command expects the following arguments:\n" arg_descriptions_converted = [] arg_descriptions.each_with_index { |x, idx| arg_descriptions_converted << "#{idx + 1}) \x1B[38;5;208m#{x}\x1B[0m" } (arg_descriptions_converted) end |