Added commandline options '--start-file', '--start-multi' and '--start-project' to start with the most recently opened file, multi project or project.

Mon, 23 Sep 2013 19:35:27 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 23 Sep 2013 19:35:27 +0200
changeset 2930
92973b701875
parent 2929
28ab0bc63d69
child 2933
ada56f070ef4

Added commandline options '--start-file', '--start-multi' and '--start-project' to start with the most recently opened file, multi project or project.

UI/UserInterface.py file | annotate | diff | comparison | revisions
changelog file | annotate | diff | comparison | revisions
eric5.py file | annotate | diff | comparison | revisions
--- a/UI/UserInterface.py	Mon Sep 23 19:32:25 2013 +0200
+++ b/UI/UserInterface.py	Mon Sep 23 19:35:27 2013 +0200
@@ -1006,7 +1006,19 @@
 
         for arg in args:
             # handle a request to start with last session
-            if arg == '--start-session':
+            if arg == '--start-file':
+                self.__openOnStartup("File")
+                # ignore all further arguments
+                return
+            elif arg == '--start-multi':
+                self.__openOnStartup("MultiProject")
+                # ignore all further arguments
+                return
+            elif arg == '--start-project':
+                self.__openOnStartup("Project")
+                # ignore all further arguments
+                return
+            elif arg == '--start-session':
                 self.__openOnStartup("Session")
                 # ignore all further arguments
                 return
--- a/changelog	Mon Sep 23 19:32:25 2013 +0200
+++ b/changelog	Mon Sep 23 19:35:27 2013 +0200
@@ -12,6 +12,9 @@
   -- changed code to be compatible with latest PyQt4 Windows installers
   -- introduced a configurable delay timer to get smoother sidebars behavior
   -- added a specialized error message handler allowing to filter messages
+  -- added commandline options '--start-file', '--start-multi' and
+     '--start-project' to start with the most recently opened file,
+     multi project or project
 - Debugger
   -- Debug Viewer
      --- added a viewer for the call stack leading to the current line
--- a/eric5.py	Mon Sep 23 19:32:25 2013 +0200
+++ b/eric5.py	Mon Sep 23 19:35:27 2013 +0200
@@ -162,6 +162,9 @@
         ("--nosplash", "don't show the splash screen"),
         ("--noopen", "don't open anything at startup except that given in command"),
         ("--plugin=plugin-file", "load the given plugin file (plugin development)"),
+        ("--start-file", "load the most recently opened file"),
+        ("--start-multi", "load the most recently opened multi-project"),
+        ("--start-project", "load the most recently opened project"),
         ("--start-session", "load the global session file"),
         ("--", "indicate that there are options for the program to be debugged"),
         ("", "(everything after that is considered arguments for this program)")

eric ide

mercurial