rescue Nil in cli.rb