summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index b15840d..3532888 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -20,5 +20,10 @@ int main(int argc, char *argv[])
a.setQuitOnLastWindowClosed(false);
tikzit = new Tikzit();
tikzit->init(&a);
+
+ if (a.arguments().length() > 1) {
+ tikzit->open(a.arguments()[1]);
+ }
+
return a.exec();
}