help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to remove the redundant print when use help()?


From: Peng Yu
Subject: Re: How to remove the redundant print when use help()?
Date: Fri, 24 Aug 2012 10:38:14 -0500

On Fri, Aug 24, 2012 at 10:07 AM, Peng Yu <address@hidden> wrote:
> On Fri, Aug 24, 2012 at 9:27 AM, Mike Miller <address@hidden> wrote:
>> On Fri, Aug 24, 2012 at 10:18 AM, Peng Yu wrote:
>>>>> Whenever I call help(), I got the following output. It is annoying. Is
>>>>> there a way to disable it? Thanks!
>>>>
>>>> help suppress_verbose_help_message
>>>
>>> There are also some empty line after the help (noted by ##). Is there
>>> a way to remove them as well? Thanks!
>>
>> The text displayed is also the return value of help called as a
>> function, so you can do:
>>
>> suppress_verbose_help_message (true);
>> func = "pwd";
>> strtrim( help (func))
>>
>> Does that work for you?
>
> Unfortunately, this does not work. See screen output below.

I end up having to modify help.m myself.

~$ diff help.m /opt/local/share/octave/3.2.4/m/help/help.m
36c36,37
<     puts ("  For help with individual commands and functions type\n\
---
>     puts ("\n\
>   For help with individual commands and functions type\n\
49c50
<   For more information visit http://www.octave.org.\n";);
---
>   For more information visit http://www.octave.org.\n\n";);
81,82c82
<     %printf ("\n%s\n%s", text, __additional_help_message__ ());
<     printf ("%s\n", strtrim(text))
---
>     printf ("\n%s\n%s", text, __additional_help_message__ ());

-- 
Regards,
Peng


reply via email to

[Prev in Thread] Current Thread [Next in Thread]