watson-ruby
watson-ruby copied to clipboard
This is a bit messy (to slice by _i - 1) when we have control [lib/watson/command.rb]
filename : lib/watson/command.rb line # : 98 tag : review md5 : 6cd359037bd5d372ceac24e9bbb9e4d9
# [review] - This is a bit messy (to slice by _i - 1) when we have control
# over the _i index above but I don't want to
# think about the logic right now so look at later
_flag_args = args.slice!(0..(_i-1))
case _flag
when "-c", "--context-depth"
debug_print "Found -c/--context-depth argument\n"
set_context(_flag_args)
when "-d", "--dirs"
debug_print "Found -d/--dirs argument\n"
set_dirs(_flag_args)
when "-f", "--files"
debug_print "Found -f/--files argument\n"
set_files(_flag_args)