Download ruby_cli, a Ruby gem I wrote to help create Ruby command line interface programs.
Here is an example program which uses ruby_cli.
#!/usr/bin/ruby
require 'rubygems'
require 'ruby_cli'
class App
include RubyCLI
def command
puts "Hello World"
end
end
app = App.new(ARGV, __FILE__)
app.run
Running the program:
Running the program with the help option.
This comment has been removed by a blog administrator.
ReplyDelete