# Some clarification on trallop

**URL:** <https://www.ruby-forum.com/t/some-clarification-on-trallop/125511>\
**Category:** Ruby\
**Created:** [January 9, 2008, 9:21pm UTC](https://www.ruby-forum.com/t/some-clarification-on-trallop/125511 "2008-01-09T21:21:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Junkone](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e274bd/32.png) [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Post date:** [January 9, 2008, 9:21pm UTC](https://www.ruby-forum.com/t/some-clarification-on-trallop/125511/1 "2008-01-09T21:21:05Z")

</div>

I would like to understand how trallop works.

test.rb  
opts = Trollop::options do

opt :option1, “do something”  
opt :option2, “do different something”

end

so i can run test.rb

If arguement 1 matches :option1, it will perform “do something”

I am not getting this one right. i am looking for a commandline parser  
for my app and lookedup at trallop.
