mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-28 03:01:57 +02:00
Fix help text and short desc for the two wrapper kittens
This commit is contained in:
@@ -504,12 +504,12 @@ def kitten_clis() -> None:
|
|||||||
od.append(opt.struct_declaration())
|
od.append(opt.struct_declaration())
|
||||||
if ac is not None:
|
if ac is not None:
|
||||||
print(''.join(ac.as_go_code('ans.ArgCompleter', ' = ')))
|
print(''.join(ac.as_go_code('ans.ArgCompleter', ' = ')))
|
||||||
|
if not kcd:
|
||||||
|
print('specialize_command(ans)')
|
||||||
if has_underscore:
|
if has_underscore:
|
||||||
print("clone := root.AddClone(ans.Group, ans)")
|
print("clone := root.AddClone(ans.Group, ans)")
|
||||||
print('clone.Hidden = false')
|
print('clone.Hidden = false')
|
||||||
print(f'clone.Name = "{serialize_as_go_string(kitten.replace("_", "-"))}"')
|
print(f'clone.Name = "{serialize_as_go_string(kitten.replace("_", "-"))}"')
|
||||||
if not kcd:
|
|
||||||
print('specialize_command(ans)')
|
|
||||||
print('}')
|
print('}')
|
||||||
print('type Options struct {')
|
print('type Options struct {')
|
||||||
print('\n'.join(od))
|
print('\n'.join(od))
|
||||||
|
|||||||
@@ -132,4 +132,4 @@ elif __name__ == '__doc__':
|
|||||||
cd['usage'] = usage
|
cd['usage'] = usage
|
||||||
cd['options'] = option_text
|
cd['options'] = option_text
|
||||||
cd['help_text'] = help_text
|
cd['help_text'] = help_text
|
||||||
cd['short_desc'] = help_text
|
cd['short_desc'] = 'Transfer files easily over the TTY device'
|
||||||
|
|||||||
Reference in New Issue
Block a user