lib/simple_scripting/tab_completion.rb
def complete_option(commandline_processor, execution_target)
      all_switches = @switches_definition.select { |definition| definition.is_a?(Array) }.map { |definition| definition[1][/^--\S+/] }

      matching_switches = all_switches.select { |switch| switch.start_with?(commandline_processor.completing_word_prefix) }

      output_entries(matching_switches)
    end
def complete_option(commandline_processor, execution_target)
      all_switches = @switches_definition.select { |definition| definition.is_a?(Array) }.map { |definition| definition[1][/^--\S+/] }

      matching_switches = all_switches.select { |switch| switch.start_with?(commandline_processor.completing_word_prefix) }

      output_entries(matching_switches)
    end
Completion!