module Tagmv::CommandLine
Public Instance Methods
parse()
click to toggle source
# File lib/tagmv/command_line.rb, line 43 def parse return Choice.help if !Choice.choices[:reorder] && (Choice.choices.empty? || Choice.rest.empty?) opts = Hash.new opts[:files] = Choice.rest opts[:dry_run] = Choice.choices[:dry_run] opts[:tags] = Choice.choices[:tags] opts[:reorder] = Choice.choices[:reorder] opts[:skip_reorder]= Choice.choices[:skip_reorder] opts end