Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Using commandline for cvs-like commands and help?

Reply
Thread Tools

Using commandline for cvs-like commands and help?

 
 
Markus Fischer
Guest
Posts: n/a
 
      05-29-2009
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...ocs.index.html
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
commandline options and output-"method" Skave Rat Ruby 3 09-10-2008 10:00 PM
my module and unittest contend over commandline options... chrisber Python 1 05-02-2008 08:06 PM
Web Services Client generation using WSDL2Java on the commandline Akaketwa Java 0 01-12-2007 09:30 AM
Need Help Differentiating Bad Commands From Incomplete Commands Tim Stanka Python 1 08-02-2004 02:08 AM
Re: man pages for C commands (GCC commands) Ben Pfaff C Programming 4 06-28-2003 06:21 PM



Advertisments