Opened 13 years ago

Last modified 13 years ago

#1670 closed defect

Fix help() — at Version 1

Reported by: Martin Sjölund Owned by: Martin Sjölund
Priority: high Milestone: 1.9.0
Component: Backend Version:
Keywords: Cc: Martin Sjölund, Per Östlund

Description (last modified by Martin Sjölund)

We should remove the static help-text and generate this on-the-fly instead. The new flag system is capable of showing different text; so could the help() function.

function help "display the OpenModelica help text"
  output String helpText;
  annotation(__OpenModelica_EarlyInline = true);
algorithm
  helpText := readFile(getInstallationDirectoryPath() + "/share/doc/omc/omc_helptext.txt");
annotation(preferredView="text");
end help;

Change History (1)

comment:1 by Martin Sjölund, 13 years ago

Component: Backend
Description: modified (diff)
Note: See TracTickets for help on using tickets.