@@ -28,6 +28,7 @@ void usage(const char *prog)
printf(" -p register plugin, use plugin name, absolute or relative path\n");
printf(" -u unregister plugin, use plugin name or absolute path\n");
printf(" -s import a session\n");
+ printf(" -l import the last session\n");
}
int main(int argc, char **argv)
@@ -40,7 +41,7 @@ int main(int argc, char **argv)
int c;
bool fromSession = false;
- while ((c = getopt(argc, argv, "hvi:p:u:s:")) != -1) {
+ while ((c = getopt(argc, argv, "hvi:p:u:s:l")) != -1) {
switch(c) {
case 'h':
usage(argv[0]);
@@ -65,6 +66,12 @@ int main(int argc, char **argv)
case 's':
ks.loadSession(QString(optarg));
fromSession = true;
+ break;
+
+ case 'l':
+ ks.loadSession(ks.lastSessionFile());
+ fromSession = true;
+ break;
default:
break;