mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-10-22 05:02:31 +00:00
Add some messages to kitten help for kittens that are not meant to be run by end users.
This commit is contained in:
parent
096c1e328e
commit
dc1851acdb
2 changed files with 3 additions and 3 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue