diff options
author | elliott_c <ocielliottc@users.noreply.github.com> | 2009-08-06 15:11:29 +0000 |
---|---|---|
committer | elliott_c <ocielliottc@users.noreply.github.com> | 2009-08-06 15:11:29 +0000 |
commit | ae852ecc235e2786969e3acdc1635a374ae30ce3 (patch) | |
tree | 284ddc6084eb28c12023029a1085c0f1aee0cf0c /devtools | |
parent | a848b3ffe64557afc4ec3c864a982cb3e290870a (diff) | |
download | MPC-ae852ecc235e2786969e3acdc1635a374ae30ce3.tar.gz |
ChangeLogTag: Thu Aug 6 15:11:07 UTC 2009 Chad Elliott <elliott_c@ociweb.com>
Diffstat (limited to 'devtools')
-rwxr-xr-x | devtools/document_template.pl | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/devtools/document_template.pl b/devtools/document_template.pl index bd143511..f284dfa8 100755 --- a/devtools/document_template.pl +++ b/devtools/document_template.pl @@ -137,7 +137,9 @@ sub display_template { sub usageAndExit { print "document_template.pl v$version\n", "Usage: ", basename($0), " <template> [<html output> [language]]\n\n", - "language can be any of the valid language settings for MPC.\n"; + "language defaults to ", Creator::defaultLanguage(), + ". It can be any of the valid language settings\nfor MPC:\n", + join(' ', sort(Creator::validLanguages())), "\n"; exit(0); } @@ -162,13 +164,13 @@ if (!defined $output) { if (open($fh, $input)) { if (!defined $language) { if (index($input, 'vb') != -1) { - $language = 'vb'; + $language = Creator::vb(); } - elsif (index($input, 'csharp') != -1) { - $language = 'csharp'; + elsif (index($input, 'csharp') != -1 || index($input, '.net') != -1) { + $language = Creator::csharp(); } else { - $language = 'cplusplus'; + $language = Creator::cplusplus(); } } |