20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# File 'lib/unbundler/cli.rb', line 20
def parse_args
opts = { :action => :unbundle }
case ARGV.first
when "show", "list"
opts[:action] = :show
when "edit_keep_list"
opts[:action] = :edit_keep_list
end
opts.merge( Trollop::options do
version "unbundler v#{Unbundler::VERSION}"
opt :keep, "List of gems to keep", :type => :strings
opt :plain, "Plain output for unbundle list"
opt :interactive, "Interactive unbundle(ask about each gem)"
opt :quiet, "Produce no output"
end)
end
|