Class: Mysh::NoInitOption

Inherits:
CommandOption show all
Defined in:
lib/mysh/command_line/init.rb

Overview

The mysh no init command.

Instance Attribute Summary

Attributes inherited from Action

#description, #name

Instance Method Summary collapse

Methods inherited from CommandOption

#get_arg, #post_boot

Methods inherited from Action

#action_info, #initialize, #process_quick_command, #short_name

Constructor Details

This class inherits a constructor from Mysh::Action

Instance Method Details

#pre_boot(_args) ⇒ Object

Skip over the argument for pre_boot.



39
40
41
42
# File 'lib/mysh/command_line/init.rb', line 39

def pre_boot(_args)
  fail "The mysh is already initialized." if $mysh_init_file
  $mysh_init_file = "<none>"
end