1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-11-07 22:53:16 +01:00

spec: Build git-obs man page

This commit is contained in:
2025-04-03 13:55:20 +02:00
parent cdeadbe56d
commit e9b65037ef
2 changed files with 21 additions and 1 deletions

View File

@@ -249,6 +249,14 @@ class GitObsMainCommand(osc.commandline_common.MainCommand):
self._gitea_conn = value
def get_parser():
"""
Needed by argparse-manpage to generate man pages from the argument parser.
"""
main, _ = GitObsMainCommand.main(run=False)
return main.parser
def main():
try:
GitObsMainCommand.main()