Get IPC working

This commit is contained in:
Kovid Goyal
2017-11-17 13:12:34 +05:30
parent bf09c33b99
commit 7deb68de61
4 changed files with 50 additions and 14 deletions

View File

@@ -101,6 +101,27 @@ def option_parser():
'Path to a file containing the startup session (tabs, windows, layout, programs)'
)
)
a(
'-1', '--single-instance',
default=False,
action='store_true',
help=_(
'If specified only a single instance of {0} will run. New invocations will'
' instead create a new top-level window in the existing {0} instance. This'
' allows {0} to share a single sprite cache on the GPU and also reduces'
' startup time. You can also have groups of {0} instances by using the'
' {1} option.'
).format(appname, '--instance-group')
)
a(
'--instance-group',
default=None,
help=_(
'Used in combination with the --single-instance option. All {0} invocations'
' with the same --instance-group will result in new windows being created'
' in the first {0} instance with that group.'
).format(appname)
)
a(
'args',
nargs=argparse.REMAINDER,