Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: How to link the help file for a command to its immediate version (or generally add aliases)


From   "Eva Poen" <[email protected]>
To   [email protected]
Subject   Re: st: How to link the help file for a command to its immediate version (or generally add aliases)
Date   Fri, 26 Sep 2008 23:05:54 +0100

Thank you, Nick. This is useful.

Although I was hoping for a single-file-solution for all aliases.
Looks like I need one help file per abbreviation.

Eva

2008/9/26 Nick Cox <[email protected]>:
> Yes. The help file for one command can be, in its entirety, a pointer to
> another help file.
>
> Thus if you wish
>
> . h commandi
>
> to point to -command.sthlp-, just have
>
> ----------------------- commandi.sthlp
> . h command
> -----------------------
>
> Nick
> [email protected]
>
> Eva Poen wrote:
>
>> Is it possible, for a user written command, to link the help file for
>> -command- to -commandi-? I.e., when typing -help commandi-, what
>> should show up is the help file for -command-, because it's all
>> documented in one file.
>>
>> I came across the *help_alias.maint files in the Stata installation,
>> which I think do the job for Stata's official commands. I can't see a
>> way to add aliases (any, really, also abbreviations) for non-official
>> commands.
>>
>> I'm forgetful with options, so I get to call the help files for my own
>> programs from time to time. Combined with my habit of inventing long,
>> akward names for programs, this is a lot of typing...
>
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
>
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index