summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaromil <jaromil@dyne.org>2008-11-07 16:58:00 (GMT)
committer Jaromil <jaromil@dyne.org>2008-11-07 16:58:00 (GMT)
commit7f5475d86836c5fe6797bb51ccc95a13ee07f580 (patch)
tree54a35054fdb7daaeb1dbbe312d8ef3fbaff80497
parent5e8071a1035825089d53e2fbe42809eeb6a03e4f (diff)
last fixes for 0.9 release
-rw-r--r--cmdline.cpp12
-rw-r--r--tbt.cpp2
2 files changed, 9 insertions, 5 deletions
diff --git a/cmdline.cpp b/cmdline.cpp
index ee8e005..d9c92f1 100644
--- a/cmdline.cpp
+++ b/cmdline.cpp
@@ -101,11 +101,10 @@ bool console = false;
int timing = POSIX;
// operation modes
+int operation = 0x0;
#define REC 1
#define PLAY 2
-
#define CONV 4
-int operation = REC;
// rendering formats
@@ -280,7 +279,7 @@ int record_console() {
txt->blank();
// write out to the status widget
- notice("TBT - console ready");
+ notice("TBT recording, press [ESC] when finished");
while(!tbt.quit) {
@@ -365,7 +364,12 @@ int main(int argc, char** argv)
{
cmdline(argc, argv);
-
+
+ if(!operation) {
+ error("no operation specified, use -h for help on usage.");
+ exit(0);
+ }
+
if(timing == RTC)
tbt.rtc = true;
diff --git a/tbt.cpp b/tbt.cpp
index 5795df2..2eb201f 100644
--- a/tbt.cpp
+++ b/tbt.cpp
@@ -1,6 +1,6 @@
/* Time Based Text
*
- * (C) Copyright 2006 - 2007 Denis Rojo <jaromil@dyne.org>
+ * (C) Copyright 2006 - 2008 Denis Roio <jaromil@dyne.org>
* Idea shared with Joan & Dirk <jodi@jodi.org>
*
* This source code is free software; you can redistribute it and/or