From dc1851acdb890aff8ec0e9460190946012eac6f6 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 22 Jan 2023 08:46:29 +0530 Subject: [PATCH] Add some messages to kitten help for kittens that are not meant to be run by end users. --- kittens/remote_file/main.py | 2 +- kittens/show_error/main.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/kittens/remote_file/main.py b/kittens/remote_file/main.py index e2a7f035f..5c8b5b8c6 100644 --- a/kittens/remote_file/main.py +++ b/kittens/remote_file/main.py @@ -229,7 +229,7 @@ Result = Optional[str] def main(args: List[str]) -> Result: - msg = 'Ask the user what to do with the remote file' + msg = 'Ask the user what to do with the remote file. For internal use by kitty, do not run it directly.' try: cli_opts, items = parse_args(args[1:], option_text, '', msg, 'kitty remote_file', result_class=RemoteFileCLIOptions) except SystemExit as e: diff --git a/kittens/show_error/main.py b/kittens/show_error/main.py index de1268c26..b507d7ed4 100644 --- a/kittens/show_error/main.py +++ b/kittens/show_error/main.py @@ -23,8 +23,8 @@ The title for the error message. def real_main(args: List[str]) -> None: - msg = 'Show an error message' - cli_opts, items = parse_args(args[1:], OPTIONS, '', msg, 'hints', result_class=ErrorCLIOptions) + msg = 'Show an error message. For internal use by kitty.' + cli_opts, items = parse_args(args[1:], OPTIONS, '', msg, 'show_error', result_class=ErrorCLIOptions) data = json.loads(sys.stdin.buffer.read()) error_message = data['msg'] if cli_opts.title: