Changeset 334

Show
Ignore:
Timestamp:
11/27/07 14:51:49 (5 years ago)
Author:
mgalloy
Message:

Turned off DEBUG. Fixed typo in CSS for code (reported by Piper). Added HELP and VERSION keywords per Piper's request.

Location:
trunk/idldoc/src
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/idldoc/src/doc_system__define.pro

    r323 r334  
    247247 
    248248     
    249   message, 'IDLDOC: ' + msg, /noname 
     249  message, msg, /noname 
    250250end 
    251251 
     
    281281   
    282282  if (~self.quiet && ~self.silent) then print, msg 
     283end 
     284 
     285 
     286;+ 
     287; Print basic help message. 
     288;- 
     289pro doc_system::printHelp 
     290  compile_opt strictarr 
     291   
     292  msg = ['Calling syntax: ', $ 
     293         '', $ 
     294         '  IDL> idldoc, ROOT=root, OUTPUT=output', $ 
     295         '', $ 
     296         'where the ROOT keyword specifies a directory hierarchy to', $ 
     297         'document and the OUTPUT keyword specifies an output location.', $ 
     298         '', $ 
     299         'See the help for more information about other keywords.'] 
     300   
     301  self->print, transpose(msg) 
    283302end 
    284303 
     
    921940                           preformat=preformat, browse_routines=browseRoutines, $ 
    922941                           template_prefix=templatePrefix, $ 
    923                            template_location=templateLocation                           
     942                           template_location=templateLocation, $ 
     943                           help=help, version=version                       
    924944  compile_opt strictarr 
    925945   
    926946  self.version = idldoc_version() 
     947   
     948  if (keyword_set(version)) then begin 
     949    self->print, 'IDLdoc ' + self.version 
     950    return, 0 
     951  endif 
     952   
     953  if (keyword_set(help)) then begin 
     954    self->printHelp 
     955    return, 0 
     956  endif 
    927957   
    928958  ; check root directory 
  • trunk/idldoc/src/idldoc.pro

    r313 r334  
    6464;    error : out, optional, type=long 
    6565;       error code from run; 0 indicates no error 
     66;    help : in, optional, type=boolean 
     67;       if set, print out a help message instead of running IDLdoc 
     68;    version : in, optional, type=boolean 
     69;       if set, print the IDLdoc version instead of running IDLdoc 
    6670;- 
    6771pro idldoc, root=root, $ 
     
    8892            template_prefix=templatePrefix, $ 
    8993            template_location=templateLocation, $ 
    90             error=error 
     94            error=error, $ 
     95            help=help, $ 
     96            version=version 
    9197  compile_opt strictarr 
    9298 
    9399  ; TODO: make sure to turn debug off before releasing 
    94   debug = 1B 
     100  debug = 0B 
    95101  origPath = !path 
    96102   
     
    129135                   browse_routines=browseRoutines, $ 
    130136                   template_prefix=templatePrefix, $ 
    131                    template_location=templateLocation) 
     137                   template_location=templateLocation, $ 
     138                   help=help, $ 
     139                   version=version) 
    132140   
    133141  !path = origPath 
  • trunk/idldoc/src/resources/main.css

    r328 r334  
    4343 
    4444/* code styles */ 
    45 code { font-family: Monaco; "Courier New", Courier, monospace; } 
     45code { font-family: Monaco, "Courier New", Courier, monospace; } 
    4646code.listing { white-space: pre; display: block; padding: 0.5em 3em 0.5em 3em; font-size: 90%; } 
    4747code.source { white-space: pre; display: block; font-size: 90%; }