Altered indentation and added regex to commandline.rb