# Re: getoptlong, getopt, parseopt, which one to use for comma

**URL:** <https://www.ruby-forum.com/t/re-getoptlong-getopt-parseopt-which-one-to-use-for-comma/53945>\
**Category:** Ruby\
**Created:** [February 17, 2006, 8:41pm UTC](https://www.ruby-forum.com/t/re-getoptlong-getopt-parseopt-which-one-to-use-for-comma/53945 "2006-02-17T20:41:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![BergerS\_Daniel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bc8723/32.png) [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Post date:** [February 17, 2006, 8:41pm UTC](https://www.ruby-forum.com/t/re-getoptlong-getopt-parseopt-which-one-to-use-for-comma/53945/1 "2006-02-17T20:41:29Z")

</div>

> > There seems to be several options out there. Which one  
> > should be used  
> > when creating command line tools?
> 
> it keeps things exciting to mix them up in unpredictable ways
> 
> - preferably in obfusicated code.
> 
> 😉
> 
> seriously - use getoptlong for simple stuff and optparse if  
> your needs are more elaborate.

Use getopt for simple stuff or commandline if your needs are more  
elaborate.

😃

Dan

---

<div class="post-metadata">

**Author:** ![BergerS\_Daniel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bc8723/32.png) [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Post date:** [February 17, 2006, 9:08pm UTC](https://www.ruby-forum.com/t/re-getoptlong-getopt-parseopt-which-one-to-use-for-comma/53945/2 "2006-02-17T21:08:49Z")

</div>

I’m not sure what you mean. I know what getopt is but what do you mean  
by use commandline?

---

<div class="post-metadata">

**Author:** ![BergerS\_Daniel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bc8723/32.png) [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Post date:** [February 17, 2006, 9:11pm UTC](https://www.ruby-forum.com/t/re-getoptlong-getopt-parseopt-which-one-to-use-for-comma/53945/3 "2006-02-17T21:11:54Z")

</div>

commandline is in RubyForge. See  
[http://rubyforge.org/projects/optionparser/](http://rubyforge.org/projects/optionparser/).
