From c03dff23228e9a5c5e3aac6c18a80aaefbb104cf Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 17 Oct 2023 19:49:44 +0530 Subject: [PATCH] Fix help text and short desc for the two wrapper kittens --- gen/go_code.py | 4 ++-- kittens/transfer/main.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gen/go_code.py b/gen/go_code.py index 30ea21522..917621cc8 100755 --- a/gen/go_code.py +++ b/gen/go_code.py @@ -504,12 +504,12 @@ def kitten_clis() -> None: od.append(opt.struct_declaration()) if ac is not None: print(''.join(ac.as_go_code('ans.ArgCompleter', ' = '))) + if not kcd: + print('specialize_command(ans)') if has_underscore: print("clone := root.AddClone(ans.Group, ans)") print('clone.Hidden = false') print(f'clone.Name = "{serialize_as_go_string(kitten.replace("_", "-"))}"') - if not kcd: - print('specialize_command(ans)') print('}') print('type Options struct {') print('\n'.join(od)) diff --git a/kittens/transfer/main.py b/kittens/transfer/main.py index 6861eeb02..404989d30 100644 --- a/kittens/transfer/main.py +++ b/kittens/transfer/main.py @@ -132,4 +132,4 @@ def main(args: List[str]) -> None: cd['usage'] = usage cd['options'] = option_text cd['help_text'] = help_text - cd['short_desc'] = help_text + cd['short_desc'] = 'Transfer files easily over the TTY device'