parent
db98b03f34
commit
5043f58f3c
@ -46,6 +46,9 @@ It was inspired by other browsers/addons like dwb and Vimperator/Pentadactyl.
|
||||
*-r* 'SESSION', *--restore* 'SESSION'::
|
||||
Restore a named session.
|
||||
|
||||
*-R*, *--override-restore*::
|
||||
Don't restore a session even if one would be restored.
|
||||
|
||||
=== debug arguments
|
||||
*-l* 'LOGLEVEL', *--loglevel* 'LOGLEVEL'::
|
||||
Set loglevel
|
||||
|
@ -261,7 +261,8 @@ class Application(QApplication):
|
||||
message.error('current', "set: {} - {}".format(
|
||||
e.__class__.__name__, e))
|
||||
|
||||
self._load_session(self._args.session)
|
||||
if not self._args.override_restore:
|
||||
self._load_session(self._args.session)
|
||||
session_manager = objreg.get('session-manager')
|
||||
if not session_manager.did_load:
|
||||
log.init.debug("Initializing main window...")
|
||||
|
@ -55,6 +55,9 @@ def get_argparser():
|
||||
metavar=('SECTION', 'OPTION', 'VALUE'))
|
||||
parser.add_argument('-r', '--restore', help="Restore a named session.",
|
||||
dest='session')
|
||||
parser.add_argument('-R', '--override-restore', help="Don't restore a "
|
||||
"session even if one would be restored.",
|
||||
action='store_true')
|
||||
|
||||
debug = parser.add_argument_group('debug arguments')
|
||||
debug.add_argument('-l', '--loglevel', dest='loglevel',
|
||||
|
Loading…
Reference in New Issue
Block a user