Fix help text and short desc for the two wrapper kittens

This commit is contained in:
Kovid Goyal
2023-10-17 19:49:44 +05:30
parent dc6edf9191
commit c03dff2322
2 changed files with 3 additions and 3 deletions

View File

@@ -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))

View File

@@ -132,4 +132,4 @@ elif __name__ == '__doc__':
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'