Re: get_help_text() function problem

Markus Mützel <[email protected]>
Newsgroups gmane.comp.gnu.octave.general
Message-ID <trinity-e2181273-68c5-4b30-b0d0-f52c5cc68937-1621605953070@3c-app-gmx-bs48>
Am 21. Mai 2021 um 12:37 Uhr schrieb "Bill Greene":
> I am running Octave 6.2.0.
> 
> Running
> help inputParser
> works for me. But that class is so much more complicated than my simple 
> example that I can't determine what the significant difference is. 

It works for me if the classdef has at least one methods block and the first documentation line is non-empty:

## some comment

classdef MyClass

  ## myclass:  do something
  ##

  methods
  endmethods

endclassdef


In Octave 6.2.0:

>> help MyClass

'MyClass' is a built-in function

 myclass:  do something

Additional help for built-in functions and operators is
available in the online version of the manual.  Use the command
'doc <topic>' to search the manual index.

Help and information about Octave is also available on the WWW
at https://www.octave.org and via the [email protected]
mailing list.


There is already an open report about classdef classes being erroneously classified as "built-in function":
https://savannah.gnu.org/bugs/index.php?49434

HTH,
Markus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.