diff options
Diffstat (limited to 'ports/dsl/nano-bots.rb')
-rw-r--r-- | ports/dsl/nano-bots.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ports/dsl/nano-bots.rb b/ports/dsl/nano-bots.rb index b6f4462..40bed1d 100644 --- a/ports/dsl/nano-bots.rb +++ b/ports/dsl/nano-bots.rb @@ -7,7 +7,7 @@ require_relative '../../controllers/instance' require_relative '../../controllers/interfaces/cli' module NanoBot - def self.new(cartridge:, state: '-') + def self.new(cartridge: '-', state: '-') Controllers::Instance.new(cartridge_path: cartridge, state:, stream: StringIO.new) end @@ -15,8 +15,8 @@ module NanoBot Controllers::Interfaces::CLI.handle! end - def self.repl(cartridge:, state: '-') - Controllers::Instance.new(cartridge_path: cartridge, state:).repl + def self.repl(cartridge: '-', state: '-') + Controllers::Instance.new(cartridge_path: cartridge, state:, stream: $stdout).repl end def self.version |