Skip to content
This repository
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 27 lines (21 sloc) 0.513 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
---
choice: |-
  http://choice.rubyforge.org/
  
  require 'rubygems'
  require 'choice'
  
  Choice.options do
      header 'Specific options:'
  
       option :port, :required => true do
        short '-p'
        long '--port=PORT'
        desc 'The port to listen on (default 21)'
        cast Integer
        default 21
      end
  
       option :files do
        short '-f'
        long '--files=*FILES'
        desc 'List of files'
      end
  end
  
  puts Choice.choices[:port]
Something went wrong with that request. Please try again.