Changeset 22842 for src

Show
Ignore:
Timestamp:
10/31/08 20:07:06 (2 months ago)
Author:
azawawi
Message:

[STD_syntax_highlight] --simple-html=- is enabled by default if no other option is found

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/perl6/STD_syntax_highlight

    r22841 r22842  
    4444 
    4545my ($clean_html,$help) = (0,0); 
    46 my ($full_html,$simple_html,$ansi_text) = (0,'-',0); 
     46my ($full_html,$simple_html,$ansi_text) = (0,0,0); 
    4747my ($file, $parser, $src_text);  
    4848 
     
    7676 
    7777    --full-html=filename    
    78         write full-mode html to filename (disabled by default, - for STDOUT) 
     78        write full-mode html to filename (- for STDOUT) 
    7979 
    8080    --simple-html=filename    
    81         write simple-mode html to filename (enabled by default, - for STDOUT) 
     81        write simple-mode html to filename (defaults to STDOUT if no other  
     82        option is selected, - for STDOUT) 
    8283 
    8384    --ansi-text=filename    
    84         write simple-mode ansi color text to filename (enabled by default, - for STDOUT) 
     85        write simple-mode ansi color text to filename (- for STDOUT) 
    8586 
    8687HELP 
     88    } 
     89 
     90    #default is --simple-html=- if no option is selected 
     91    if(!($ansi_text || $full_html) && !$simple_html) { 
     92        $simple_html = '-';     
    8793    } 
    8894