[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

Using commandline for cvs-like commands and help?

Markus Fischer

5/29/2009 11:34:00 AM

Hi,

I'm trying to get my brain into CommandLine [1] to figure out how to do
cvs-like command support.

Something like (just sketching)

$ ruby myapp.rb --help
Global options:
--debug
--verbose
Use one of the commands:
foo
bar
baz

$ ruby myapp.rb foo --help
Help for myapp.rb foo command....

The linked documentation has a section "CVS Mode" but in the end refers
to "More on how this is handled in the usage section.", however I find
anything.

In the subsection "OptionData" it mentions:

od.cmd # not yet implemented - but a cvs like command

Hmm ...

I'm using the CommandLine::Application idiom as it makes things very
clear and well arranged.

I tried digging into the source, but the only reference I find is in
commandline/application.rb in expected_args() and there's a comment:

# expected_args :cmd
# Now, what to do if command line has more args than expected
# app --app-option cmd --cmd-option arg-for-cmd
#

Does this mean it is not supported?

thanks,
- Markus

[1] http://rubyforge.org/docman/view.php/632/233/posted-docs....
1 Answer

Mulligan

2/22/2014 1:01:00 AM

0

On Friday, February 21, 2014 5:59:40 PM UTC-5, SAW wrote:
> On Friday, February 21, 2014 5:56:42 PM UTC-5, SAW wrote:
>
> > On Friday, February 21, 2014 4:54:40 PM UTC-5, SAW wrote:
>
> >
>
> > > http://books.google.com/books?id=vT3vziS5O-EC&pg=PT24&lpg=PT24&dq=can+you+get+into+the+baggage+compartment+of+a+727+from+the+cabin&source=bl&ots=37MVHPxOg-&sig=p5M6RUSgBVoxAMpdlt9DHlL2sRo&hl=en&sa=X&ei=GMkHU4iWGqKW0QH-2YHYDA&ved=0CCsQ6AEwAQ#v=onepage&q=can%20you%20get%20into%20the%20baggage%20compartment%20of%20a%20727%20from%20the%20cabin&a...
>
> >
>
> > >
>
> >
>
> > >
>
> >
>
> > >
>
> >
>
> > > http://answers.yahoo.com/question/index?qid=20120619165...
>
> >
>
> >
>
> >
>
> > possibility:
>
> >
>
> >
>
> >
>
> > he went to the baggage area, while they searched the 727.
>


The way you rule this out is to see where his fingerprints were in the plane.
My guess is he did not do this, but actually jumped.