watson-ruby icon indicating copy to clipboard operation
watson-ruby copied to clipboard

Make this a non-debug print to user? [lib/watson/command.rb]

Open nhmood opened this issue 11 years ago • 0 comments

filename : lib/watson/command.rb line # : 224 tag : review md5 : 2d8b0c860d5920215c042aa05acc948a

            # [review] - Make this a non-debug print to user?
            debug_print "No args passed, exiting\n"
            return false
        end

        # For context_depth we do NOT append to RC, ALWAYS overwrite
        # For each argument passed, make sure valid, then set @config.parse_depth 
        args.each do | _context_depth |
            if _context_depth.match(/^(\d+)/)
                debug_print "Setting #{ _context_depth } to config context_depth\n" 
                @config.context_depth = _context_depth.to_i
            else
                debug_print "#{ _context_depth } invalid depth, ignoring\n"
            end
        end

nhmood avatar Nov 21 '13 16:11 nhmood