Method: Flico::CommandLineInterface.parse_args
- Defined in:
- lib/flico.rb
.parse_args(args) ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/flico.rb', line 9 def self.parse_args(args) = {} OptionParser.new do |opts| opts. = 'Usage: flico [options] [10 keywords with space as delimiter]' opts.on('-f', '--file_name [FileName]', 'Collage FileName') do |f| [:file_name] = f end end.parse!(args) [args, ] end |