Small bug fix in cli.rb