Ignore -e if it is specified on the command line.
This is for compatibility with broken software that assumes terminals should run with an -e option to execute commands instead of just passing the commands as arguments. Fixes #502
This commit is contained in:
parent
8d51edec17
commit
45fc1ace0c
@ -54,6 +54,10 @@ version 0.9.1 [future]
|
|||||||
|
|
||||||
- Fix tab title not changing to reflect the window title when switching between different windows in a tab
|
- Fix tab title not changing to reflect the window title when switching between different windows in a tab
|
||||||
|
|
||||||
|
- Ignore -e if it is specified on the command line. This is for compatibility
|
||||||
|
with broken software that assumes terminals should run with an -e option to
|
||||||
|
execute commands instead of just passing the commands as arguments.
|
||||||
|
|
||||||
|
|
||||||
version 0.9.0 [2018-04-15]
|
version 0.9.0 [2018-04-15]
|
||||||
------------------------------
|
------------------------------
|
||||||
|
|||||||
10
kitty/cli.py
10
kitty/cli.py
@ -145,6 +145,11 @@ Print out information about the selection of fallback fonts for characters not p
|
|||||||
--debug-config
|
--debug-config
|
||||||
type=bool-set
|
type=bool-set
|
||||||
Print out information about the system and kitty configuration.
|
Print out information about the system and kitty configuration.
|
||||||
|
|
||||||
|
|
||||||
|
--execute -e
|
||||||
|
type=bool-set
|
||||||
|
!
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|
||||||
@ -330,12 +335,15 @@ def print_help_for_seq(seq, usage, message, appname):
|
|||||||
if isinstance(opt, str):
|
if isinstance(opt, str):
|
||||||
a('{}:'.format(title(opt)))
|
a('{}:'.format(title(opt)))
|
||||||
continue
|
continue
|
||||||
|
help_text = opt['help']
|
||||||
|
if help_text == '!':
|
||||||
|
continue # hidden option
|
||||||
a(' ' + ', '.join(map(green, sorted(opt['aliases']))))
|
a(' ' + ', '.join(map(green, sorted(opt['aliases']))))
|
||||||
if not opt.get('type', '').startswith('bool-'):
|
if not opt.get('type', '').startswith('bool-'):
|
||||||
blocks[-1] += '={}'.format(italic(opt['dest'].upper()))
|
blocks[-1] += '={}'.format(italic(opt['dest'].upper()))
|
||||||
if opt.get('help'):
|
if opt.get('help'):
|
||||||
defval = opt.get('default')
|
defval = opt.get('default')
|
||||||
t = opt['help'].replace('%default', str(defval))
|
t = help_text.replace('%default', str(defval))
|
||||||
wa(prettify(t.strip()), indent=4)
|
wa(prettify(t.strip()), indent=4)
|
||||||
if defval is not None:
|
if defval is not None:
|
||||||
wa('Default: {}'.format(defval), indent=4)
|
wa('Default: {}'.format(defval), indent=4)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user