Add a --hold command line option to stay open after the child process exits

Fixes #667
This commit is contained in:
Kovid Goyal
2018-06-22 13:51:42 +05:30
parent d16215ab6e
commit 82f6fbff77
3 changed files with 20 additions and 0 deletions

View File

@@ -76,6 +76,12 @@ Path to a file containing the startup :italic:`session` (tabs, windows, layout,
See the README file for details and an example.
--hold
type=bool-set
Remain open after child process exits. Note that this only affects the first
window. You can quit by either using the close window shortcut or :kbd:`Ctrl+d`.
--single-instance -1
type=bool-set
If specified only a single instance of :italic:`{appname}` will run. New invocations will
@@ -213,6 +219,10 @@ def code(x):
return x
def kbd(x):
return x
def env(x):
return italic(x)