[#8815] Segfault in libc strlen, via rb_str_new2 — "Sean E. Russell" <ser@...>

Howdy,

12 messages 2006/09/09
[#8817] Re: Segfault in libc strlen, via rb_str_new2 — Eric Hodel <drbrain@...7.net> 2006/09/09

On Sep 8, 2006, at 10:10 PM, Sean E. Russell wrote:

Re: [PATCH] rdoc with optparse

From: Eric Hodel <drbrain@...7.net>
Date: 2006-09-11 20:42:48 UTC
List: ruby-core #8847
On Sep 11, 2006, at 4:19 AM, greg weber wrote:

> This is a patch to allow rdoc to read the help message from optparse,
> and place it above, below, or overriding the rdoc header.  I don't
> understand the rdoc code-  I imagine there is probably a way to re-use
> rdoc code for this feature.  The help message shows up well formatted,
> but a the regular rdoc header is not formatted correctly.  I don't
> know why this is, perhaps someone could enlighten me.
>
> The basic idea is to add a command line argument like --optparse, or
> --option=help to rdoc,
> which will create documentation by capturing the program's response  
> to --help:
>    help_doc = %x{ruby #{fn} --help}.map{ |line| '#' << line }
>
> The patch is against rdoc.rb version 1.1.2.9
> Greg Weber
> <rdoc.rb>

This is not a patch, please use diff to make a patch.

-- 
Eric Hodel - drbrain@segment7.net - http://blog.segment7.net
This implementation is HODEL-HASH-9600 compliant

http://trackmap.robotcoop.com



In This Thread