# GetoptLong::AmbigousOption

**URL:** <https://www.ruby-forum.com/t/getoptlong-ambigousoption/187271>\
**Category:** Ruby\
**Created:** [April 20, 2010, 9:30pm UTC](https://www.ruby-forum.com/t/getoptlong-ambigousoption/187271 "2010-04-20T21:30:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidjrice](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/5e9695/32.png) [@davidjrice](https://www.ruby-forum.com/u/davidjrice)\
**Post date:** [April 20, 2010, 9:30pm UTC](https://www.ruby-forum.com/t/getoptlong-ambigousoption/187271/1 "2010-04-20T21:30:03Z")

</div>

Hi

I wanted to understand how I can get the error of GetoptLong::Ambigous  
option. Actually I am having that error but I do not understand why?

I do:

require ‘getoptlong’  
optconfig = [  
[‘–help’, GetoptLong::NO\_ARGUMENT],  
[‘–usage’, GetoptLong::NO\_ARGUMENT],

```
    opts = GetoptLong.new(*optconfig)

```

and many other options and each one is different. So that is why I would  
like how it works.

Thanks

David R.
