From 0e0578ff49d11a7929a88563d6ab342b4499beb6 Mon Sep 17 00:00:00 2001 From: pagedown Date: Wed, 24 Aug 2022 13:27:06 +0800 Subject: [PATCH] Docs: Use --help long option name in the document Remove the extra empty line in the CLI help for `--replay-commands`. --- docs/remote-control.rst | 2 +- kitty/cli.py | 1 - kitty/options/definition.py | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/remote-control.rst b/docs/remote-control.rst index 4eeca0db2..16410d51e 100644 --- a/docs/remote-control.rst +++ b/docs/remote-control.rst @@ -193,7 +193,7 @@ The :opt:`remote_control_password` can be specified multiple times to create different passwords with different capabilities. Run the following to get a list of all action names:: - kitty @ -h + kitty @ --help You can even use glob patterns to match action names, for example: diff --git a/kitty/cli.py b/kitty/cli.py index 39e98ad1e..0714029a1 100644 --- a/kitty/cli.py +++ b/kitty/cli.py @@ -779,7 +779,6 @@ Output commands received from child process to STDOUT. Replay previously dumped commands. Specify the path to a dump file previously created by :option:`{appname} --dump-commands`. You can open a new kitty window to replay the commands with:: - {appname} sh -c "{appname} --replay-commands /path/to/dump/file; read" diff --git a/kitty/options/definition.py b/kitty/options/definition.py index 6c5a5c486..4e7118c4b 100644 --- a/kitty/options/definition.py +++ b/kitty/options/definition.py @@ -2711,7 +2711,7 @@ Glob patterns can be used too, for example:: To get a list of available actions, run:: - kitty @ -h + kitty @ --help A set of actions to be allowed when no password is sent can be specified by using an empty password, for example::