Fixes: https://pagure.io/koji/issue/2489
Metadata Update from @tkopecek: - Pull-request tagged with: doc, no_qe
@jcupova found the difference between optparse and argparse
optparse
argparse
in optparse, it is a capitalized "Usage: ..." but in argparse, it is "usage: ..."
a simple hacking like this would change the behavior, but I'm not sure if it is worthy here
def fake_add_usage(self, usage, actions, groups, prefix="Usage: "): args = usage, actions, groups, prefix self._add_item(self._format_usage, args) HelpFormatter.add_usage = fake_add_usage
Let's ignore this for now - In "some" future we would move to argparse anyway and maybe in combination with some cli/plugin framework. So, for now it is the only place (as it was in original external plugin)
ok. :thumbsup:
Commit 6dd313b9 fixes this pull-request
Pull-Request has been merged by tkopecek
Fixes: https://pagure.io/koji/issue/2489