File: app_flag.rb

package info (click to toggle)
libcommandline-ruby 0.7.10-6
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 556 kB
  • ctags: 289
  • sloc: ruby: 2,881; makefile: 5
file content (12 lines) | stat: -rw-r--r-- 171 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12

require 'rubygems'
require 'commandline'

class App < CommandLine::Application
  def initialize
    option :flag, :names => %w(--my-flag -m)
    option :help
  end
end