|
|
|
|
SynopsisAccess the CIAO help documentation. Syntaxahelp [-n width] [-s|-m|-l] subject ahelp [-n width] [-s|-m|-l] context subject ahelp [-n width] -b blockname [-t attribute] subject ahelp [-n width] -b blockname [-t attribute] context subject ahelp [-n width] -c context about keyword DescriptionThe ahelp command accesses the CIAO on-line documentation. By default it displays an ASCII version of the help file. The CIAO site contains HTML versions of the help files, which are also available on the European mirror site. Finding help for a given subjectThe help files are arranged by subject into contexts (both subject and context are a single word) and you access these files by either: unix% ahelp <subject> or unix% ahelp <context> <subject> depending on whether or not there are help files with the same subject but different contexts (ahelp will tell you if you need to specify a context). The ahelp tool is case insensitive when it comes to matching the subject and context values. Searching for helpIf you do not know the exact subject (for a tool, the subject is just the tool name), then you enter unix% about <keyword> for a list of subjects related to your query (ie whatever value you use for <keyword>). To find out all the entries for a given context you use unix% ahelp -c <context> If a search only returns one match then that page is automatically displayed, otherwise you will see a list of subjects, with context and synopsis, that match the search. Using regular expressionsIt is possible to use a regular expression when specifying any of the subject, context, or keyword in a search. To find a list of all the keywords that contain the text "par": unix% ahelp /par/ and to list all help files with contexts that begin with "sl": unix% ahelp -c /^sl/ This feature can be very useful when trying to search for help on a particular subject, since unix% about /bin/ will list all help files whose references include the text "bin" (so this would match bin, rebin, and binned amongst others). There are a number of resources that describe the extended regular expression syntax used here, depending on what system you are using, such as "man regexp". Listing specific sections of the help fileThe "-b blockname" option is used to restrict the output to a given section of the help file. This can be useful if you only need specific information, such as the list of known bugs, description of a specific parameter, or the syntax of a given command. Allowed values for the "-b blockname" option
It is not guaranteed that a help file will contain all these sections. The "Structure of a help file" section at the end of this file provides more details on what is included in a help file. Command-line optionsThe most useful options are given below. If no option is supplied, ahelp defaults to -l.
Options for the CIAO developerThere are several other options that are only useful to CIAO developers and those that install the CIAO software.
Configuring ahelpAhelp uses the PAGER environment variable to find the program to use to page the ASCII output to the screen: examples of suitable values are more or "less -s". If you make use of the "-b" option in ahelp a lot it may be worth setting up aliases for them. For instance, the following csh/tcsh commands unix% alias bugs 'ahelp -b BUGS ' unix% alias params 'ahelp -b PARAM ' unix% alias examples 'ahelp -b QEXAMPLELIST ' provide easy access to the bugs, parameter, and examples section of a help file - if they exists - by saying "bugs dmstat", "params aconvolve" ("params -t kernelspaec aconvolve" to list an individual parameter), or "examples dmfilth". Example 3about grating Displays a list of subjects that are cross-referenced using the keyword "grating". it is equivalent to unix% ahelp -k grating Example 4ahelp /struct/ Lists all help files with a subject that contains the text "struct". If there is only one match then that help file will be displayed, otherwise the subject, context, and synopsis information for each matching file will be found. Example 5about /struct/ Lists all help files which are cross-referenced by a string that contains the text "struct". Example 6ahelp /stk/ ahelp tools /stk/ The regular-expression support can be combined with restricting a search to a particular concept. The first ahelp call lists all help files whose subject contains "stk", whereas the second one restricts the search to those subjects in the "Tools" concept. Example 7ahelp -c dm Gives a list of all available subjects within the "dm" context, along with their synopsis. Example 11ahelp -b PARAM -t infile dmcopy Displays the description of the infile parameter of dmcopy. Example 12ahelp -b ADESC dmextract There may be additional text in a help file after the examples/parameters but before the BUGS section. These are referred to as ADESC sections, and may have a title (if so, they will be numbered). In this example we display all such sections from the dmextract help file. Example 13ahelp -b ADESC -t 'OUTPUT COLUMNS: RADIAL PROFILES' dmextract If an "ADESC" section has a title then you can select just that section using the "-t" option. Here we display the 'OUTPUT COLUMNS: RADIAL PROFILES' section of the dmextract help file (note that the number preceeding the section title should not be included in the "-t" option). Example 15ahelp -n 35 times Displays help information about Chandra times, formatted as 35 columns per line. Example 16ahelp -n 100 -b PARAMLIST acis_process_events Displays help information on the parameters of acis_process_events assuming there are 100 columns per line. One useful trick is to use taskmonitor to display the output: unix% taskmonitor "ahelp -n 100 -b PARAMLIST acis_process_events" & Example 17ahelp -s -f /mydir/myfile.xml Processes the supplied file and displays a short version of the help information stored in /mydir/myfile.xml. Example 18ahelp -r /mydir/ Re-creates the database of the help files located in /mydir/doc/xml/ and /mydir/contrib/doc/xml/. STRUCTURE OF A HELP FILEThe basic layout of a help file is as follows (although some sections will not appear in all files).
To find out if any issues or bugs have come to light since the release please visit the bugs section of the CIAO web pages. CHANGES IN CIAO 4.0 Beta 2HTML ahelp options removedThe options to have ahelp open a web browser and display an HTML version of the help page have been removed. These options were "-i" (display HTML fom the CIAO website) and "-w" (display HTML packaged with CIAO). The ahelp pages are still available on the the CIAO website. BugsSee the bugs page for this tool on the CIAO website for an up-to-date listing of known bugs. |
![]() |
The Chandra X-Ray
Center (CXC) is operated for NASA by the Smithsonian Astrophysical Observatory. 60 Garden Street, Cambridge, MA 02138 USA. Email: cxcweb@head.cfa.harvard.edu Smithsonian Institution, Copyright © 1998-2004. All rights reserved. |