function getHelpText(hp)
    if ~isempty(hp.topic)
        [hp.isOperator, hp.topic] = matlab.internal.language.introspective.isOperator(hp.topic, true);
        hp.getTopicHelpText();
    elseif hp.isAtCommandLine && desktop('-inuse')
        hp.getNoInputHelp(prefdir);
    end
end

% Copyright 2007 The MathWorks, Inc.
