From: Masao M. <mu...@hi...> - 2002-07-11 11:55:57
|
Hi, On Thu, 11 Jul 2002 12:04:09 +0200 Matthias Veit <mat...@ya...> wrote: > Hi, > > I want to pass arguments from the command line to my > ruby/gtk application. > Anybody knows, how is it possible to add such arguments? If you want to pass arguments from the command when you execute the application, you can use ARGV. test.rb ------------------ require 'gtk' Gtk::Window.new.set_title(ARGV[0]).show Gtk.main ------------------ $ruby test.rb "Ruby/GTK" or parsearg.rb, getoptlong.rb is more useful. Cheers, Masao. -- .:% Masao Mutoh<mu...@hi...> |