Method: Steep::CLI#setup_command

Defined in:
lib/steep/cli.rb

#setup_commandObject



149
150
151
152
153
154
155
156
157
158
# File 'lib/steep/cli.rb', line 149

def setup_command
  @command = argv.shift&.to_sym
  if CLI.available_commands.include?(@command)
    true
  else
    stderr.puts "Unknown command: #{command}"
    stderr.puts "  available commands: #{CLI.available_commands.join(', ')}"
    false
  end
end