summaryrefslogtreecommitdiffstats
path: root/cmdline.cpp
diff options
context:
space:
mode:
authorjaromil <jaromil@383723c8-4afa-0310-b8a8-b1afb83214fc>2007-01-22 18:53:09 (GMT)
committer jaromil <jaromil@383723c8-4afa-0310-b8a8-b1afb83214fc>2007-01-22 18:53:09 (GMT)
commitd28aa236efe780261198b8d59471db56305909a8 (patch)
treee1a1cf0e3d216328f8708e549ba14e7854e59cc0 /cmdline.cpp
parentf4db1d3b42bb186f5fe5e79eb0b9dadb53751552 (diff)
automatic html file generation,
some documentation about html rendering git-svn-id: svn://dyne.org/rastasoft/tbt/trunk@830 383723c8-4afa-0310-b8a8-b1afb83214fc
Diffstat (limited to 'cmdline.cpp')
-rw-r--r--cmdline.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/cmdline.cpp b/cmdline.cpp
index 30d637f..a7b262e 100644
--- a/cmdline.cpp
+++ b/cmdline.cpp
@@ -74,7 +74,7 @@ static const char *help =
" -r record tbt - option alias: rectext\n"
" -p playback tbt - option alias: playtext\n"
" -m mail composer - option alias: recmail\n"
-" -s save format in [ bin | ascii | javascript ]\n";
+" -s save format in [ bin | ascii | html ]\n";
static const char *short_options = "-hvD:crpms:";
@@ -96,7 +96,7 @@ int operation = REC;
// rendering formats
#define BIN 1
#define ASCII 2
-#define JS 3
+#define HTML 3
int render = BIN;
@@ -166,8 +166,8 @@ void cmdline(int argc, char **argv) {
render = BIN;
else if( strncasecmp(optarg, "ASCII", 5) ==0)
render = ASCII;
- else if( strncasecmp(optarg, "JAVASCRIPT", 10) ==0)
- render = JS;
+ else if( strncasecmp(optarg, "HTML", 10) ==0)
+ render = HTML;
else {
error ("render format not recognized: %s", optarg);
act ("using default binary format render");
@@ -417,9 +417,9 @@ int main(int argc, char** argv)
act("TBT file %s rendered in ascii format",filename);
break;
- case JS:
- tbt.save_javascript( filename );
- act("TBT file %s rendered in javascript format",filename);
+ case HTML:
+ tbt.save_html( filename );
+ act("TBT file %s rendered in html format",filename);
break;
}