watson-ruby
watson-ruby copied to clipboard
Make this non-debug print to user? [lib/watson/command.rb]
filename : lib/watson/command.rb line # : 75 tag : review md5 : 134b270988d5245c6371b9eb547ee0fa
# [review] - Make this non-debug print to user?
debug_print "Unrecognized flag #{ args[0] }\n"
args.slice!(0)
end
# Parse command line options
# Grab flag (should be first arg) then slice off args until next flag
# Repeat until all args have been dealt with
until args.length == 0
# Set flag for calling function later
_flag = args.slice!(0)
debug_print "Current Flag: #{ _flag }\n"
# Go through args until we find the next valid flag or all args are parsed
_i = 0