summaryrefslogtreecommitdiffstats
path: root/cmdline.cpp
diff options
context:
space:
mode:
authorJaromil <[email protected]>2008-07-11 09:33:57 (GMT)
committer Jaromil <[email protected]>2008-07-11 09:33:57 (GMT)
commit2a661b00a6703391d4337b507f6526e97389f941 (patch)
tree191fb4da31660ed3f9b6278683880579cc2ae846 /cmdline.cpp
parentbb24b9b980be3609502a2c2f251526fe3ba01f14 (diff)
conversion to binary format,
version++
Diffstat (limited to 'cmdline.cpp')
-rw-r--r--cmdline.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/cmdline.cpp b/cmdline.cpp
index 6406e66..e1698ac 100644
--- a/cmdline.cpp
+++ b/cmdline.cpp
@@ -78,7 +78,7 @@ static const char *help =
#ifdef linux
" -t timing mode [ posix | rtc ]\n"
#endif
-" -x convert .tbt file to [ html | ascii]\n";
+" -x convert .tbt file to [ bin | html | ascii]\n";
static const char *short_options = "-hvD:crpms:t:x:";
@@ -495,7 +495,11 @@ int main(int argc, char** argv)
act("TBT file %s rendered in html format",filename);
}
break;
-
+ case BIN:
+ char tmp[512];
+ snprintf(tmp,511,"%s.tbt",filename);
+ tbt.save_bin( tmp );
+ act("TBT file %s rendered in binary format",filename);
}
}
}