diff --git a/cli/koji b/cli/koji index c88a0fb8..ab4cdc5c 100755 --- a/cli/koji +++ b/cli/koji @@ -275,7 +275,7 @@ def list_commands(categories_chosen=None): for category in categories_chosen: print(_("\n%s:" % categories[category])) for alias,handler in handlers: - desc = handler.__doc__ + desc = handler.__doc__ or '' if desc.startswith('[%s] ' % category): desc = desc[len('[%s] ' % category):] elif category != 'misc' or desc.startswith('['): diff --git a/docs/source/writing_a_plugin.rst b/docs/source/writing_a_plugin.rst index 7702867c..51a2f837 100644 --- a/docs/source/writing_a_plugin.rst +++ b/docs/source/writing_a_plugin.rst @@ -206,6 +206,7 @@ Most simple command would look like this: @export_cli def anon_handle_echo(options, session, args): + "[info] Print arguments" usage = _("usage: %prog echo ") parser = OptionParser(usage=usage) (opts, args) = parser.parse_args(args)