diff options
author | elliott_c <ocielliottc@users.noreply.github.com> | 2009-08-10 17:58:19 +0000 |
---|---|---|
committer | elliott_c <ocielliottc@users.noreply.github.com> | 2009-08-10 17:58:19 +0000 |
commit | 3fda29624e39fd322dccb0f2623858eda25311d4 (patch) | |
tree | 71058bad537c278586d72b09aefbb38ac09aad87 /devtools | |
parent | d9ec123020ded86f36191a151b3285a5ce02c199 (diff) | |
download | MPC-3fda29624e39fd322dccb0f2623858eda25311d4.tar.gz |
ChangeLogTag: Mon Aug 10 17:55:53 UTC 2009 Chad Elliott <elliott_c@ociweb.com>
Diffstat (limited to 'devtools')
-rwxr-xr-x | devtools/document_template.pl | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/devtools/document_template.pl b/devtools/document_template.pl index f284dfa8..c60bfecb 100755 --- a/devtools/document_template.pl +++ b/devtools/document_template.pl @@ -39,7 +39,7 @@ require StringProcessor; my %keywords; my %arrow_op; my $doc_ext = '.txt'; -my $version = '1.2'; +my $version = '1.3'; # ****************************************************************** # Subroutine Section @@ -137,8 +137,11 @@ sub display_template { sub usageAndExit { print "document_template.pl v$version\n", "Usage: ", basename($0), " <template> [<html output> [language]]\n\n", - "language defaults to ", Creator::defaultLanguage(), - ". It can be any of the valid language settings\nfor MPC:\n", + "html output - This defaults to the name of the template file ", + "with the .mpd\n extenion replaced with .html.\n", + "language - This defaults to the language for which the ", + "template is designed.\n It can be any of the valid ", + "language settings for MPC:\n ", join(' ', sort(Creator::validLanguages())), "\n"; exit(0); } @@ -169,6 +172,9 @@ if (open($fh, $input)) { elsif (index($input, 'csharp') != -1 || index($input, '.net') != -1) { $language = Creator::csharp(); } + elsif (index($input, 'java') != -1) { + $language = Creator::java(); + } else { $language = Creator::cplusplus(); } |