class Mysh::CommandOption
A mysh command line option.
Public Instance Methods
get_arg(read_point)
click to toggle source
Get an argument for an option.
# File lib/mysh/command_line.rb, line 21 def get_arg(read_point) result = read_point.next fail if COMMAND_LINE.exists?(result) #An arg should not be a command! result rescue fail "Error in #{short_name.inspect}: Invalid argument: #{result.inspect}" end
post_boot(_args)
click to toggle source
Execute a post-boot command line option.
# File lib/mysh/command_line.rb, line 16 def post_boot(_args); end
pre_boot(_args)
click to toggle source
Execute a pre-boot command line option.
# File lib/mysh/command_line.rb, line 13 def pre_boot(_args); end
Also aliased as: process_command