# Latest ruby-gnome2 and commandline parameters

**URL:** <https://www.ruby-forum.com/t/latest-ruby-gnome2-and-commandline-parameters/98526>\
**Category:** Ruby-Gnome 2\
**Created:** [July 15, 2006, 1:31pm UTC](https://www.ruby-forum.com/t/latest-ruby-gnome2-and-commandline-parameters/98526 "2006-07-15T13:31:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![blueprint](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/cc9497/32.png) [@blueprint](https://www.ruby-forum.com/u/blueprint)\
**Post date:** [July 15, 2006, 1:31pm UTC](https://www.ruby-forum.com/t/latest-ruby-gnome2-and-commandline-parameters/98526/1 "2006-07-15T13:31:36Z")

</div>

With a recent ruby-gnome2 (0.15.0), the simple program:

require ‘gtk2’  
puts “hello world”

will break on line one if it is called with an argument; with argument  
–foo, it breaks with:

/usr/lib/ruby/site\_ruby/1.8/gtk2.rb:13:in `init’: Unknown option --foo  
(RuntimeError)  
from /usr/lib/ruby/site\_ruby/1.8/gtk2.rb:13  
from tgtk.rb:1

how to fix? thanks!

–  
Guillaume C. - [http://zarb.org/~gc/](http://zarb.org/~gc/)

* * *

Using Tomcat but need to do more? Need to support web services,  
security?  
Get stuff done quickly with pre-integrated technology to make your job  
easier  
Download IBM WebSphere Application Server v.1.0.1 based on Apache  
Geronimo  
[http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642](http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642)

---

<div class="post-metadata">

**Author:** ![blueprint](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/cc9497/32.png) [@blueprint](https://www.ruby-forum.com/u/blueprint)\
**Post date:** [July 15, 2006, 3:24pm UTC](https://www.ruby-forum.com/t/latest-ruby-gnome2-and-commandline-parameters/98526/2 "2006-07-15T15:24:56Z")

</div>

On 7/15/06, Guillaume C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> ```
> from /usr/lib/ruby/site_ruby/1.8/gtk2.rb:13
> from tgtk.rb:1
> 
> ```
> 
> how to fix? thanks!

Notice: I’m using [http://zarb.org/~gc/t/rg2.patch](http://zarb.org/~gc/t/rg2.patch) now.

–  
Guillaume C. - [http://zarb.org/~gc/](http://zarb.org/~gc/)

* * *

Using Tomcat but need to do more? Need to support web services,  
security?  
Get stuff done quickly with pre-integrated technology to make your job  
easier  
Download IBM WebSphere Application Server v.1.0.1 based on Apache  
Geronimo  
[http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642](http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642)

---

<div class="post-metadata">

**Author:** ![blueprint](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/cc9497/32.png) [@blueprint](https://www.ruby-forum.com/u/blueprint)\
**Post date:** [July 17, 2006, 1:29pm UTC](https://www.ruby-forum.com/t/latest-ruby-gnome2-and-commandline-parameters/98526/3 "2006-07-17T13:29:58Z")

</div>

Hi,

On Sat, 15 Jul 2006 15:23:07 +0200  
“Guillaume C.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > (RuntimeError)  
> > from /usr/lib/ruby/site\_ruby/1.8/gtk2.rb:13  
> > from tgtk.rb:1
> > 
> > how to fix? thanks!
> 
> Notice: I’m using [http://zarb.org/~gc/t/rg2.patch](http://zarb.org/~gc/t/rg2.patch) now.

Thanks.

I fixed it like your patch.

–  
.:% Masao M.[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

* * *

Using Tomcat but need to do more? Need to support web services,  
security?  
Get stuff done quickly with pre-integrated technology to make your job  
easier  
Download IBM WebSphere Application Server v.1.0.1 based on Apache  
Geronimo  
[http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642](http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642)
