[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

parsing a command

Paul Irofti

10/24/2006 5:55:00 PM

Hi,

My app has (amongst other UIs) a CLI that, as expected, has a small set
of commands. The CLI is written in Ruby, as the rest of the app.

I want to improve my CLI add command by passing all the parameters to it
in one line. Let me give an example of current and wanted behavior:

Current:

> add
Type: item_type_goes_here
Title: item_title_goes_here
Description: item_desc_goes_here