#!/usr/local/bin/ruby # ######################################## # CMSC 330 - Project 1 # Name: # ######################################## def validate() true end #---------------------------------- # check # of command line arguments if ARGV.length < 2 fail "usage: maze.rb " end command = ARGV[0] file = ARGV[1] maze_file = open(file) #---------------------------------- # perform command case command when "validate" puts "yes" if validate when "print" lines = maze_file.readlines puts lines[0] else fail "Invalid command" end