some clarification on trallop

J

Junkone

I would like to understand how trallop works.

test.rb
opts = Trollop::eek:ptions do

opt :eek:ption1, "do something"
opt :eek:ption2, "do different something"

end


so i can run test.rb <arguement1>

If arguement 1 matches :eek:ption1, 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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,276
Messages
2,571,384
Members
48,072
Latest member
FaustoBust

Latest Threads

Top