summaryrefslogtreecommitdiff
path: root/src/kaiman.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/kaiman.cc')
-rw-r--r--src/kaiman.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/kaiman.cc b/src/kaiman.cc
index 8a605e1..d7a2707 100644
--- a/src/kaiman.cc
+++ b/src/kaiman.cc
@@ -40,10 +40,10 @@ void __attribute__ ((constructor)) premain()
int main(int argc, char *argv[])
{
- if(argc != 2)
+ QString file;
+ if(argc == 2)
{
- printf("Usage: %s script\n", argv[0]);
- return 1;
+ file = argv[1];
}
// QLocale::setDefault(QLocale(QLocale::Danish, QLocale::Denmark));