1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-12 13:49:24 +01:00

Document '--buildtool-opt=--noclean' example in 'build' command's help

This commit is contained in:
Daniel Mach 2024-04-22 13:32:16 +02:00
parent ea8d2c0d16
commit 9365a421ce

View File

@ -7172,7 +7172,14 @@ Please submit there instead, or use --nodevelproject to force direct submission.
@cmdln.option('--build-opt', metavar='OPT', action='append', @cmdln.option('--build-opt', metavar='OPT', action='append',
help='pass option OPT to the build command') help='pass option OPT to the build command')
@cmdln.option('--buildtool-opt', metavar='OPT', action='append', @cmdln.option('--buildtool-opt', metavar='OPT', action='append',
help='pass option OPT to the build tool command (rpmbuild)') help=textwrap.dedent(
"""
pass option OPT to the build tool command (rpmbuild), for example:
* don't clean build environment after a successful build:
--buildtool-opt=--noclean
"""
),
)
@cmdln.option('--userootforbuild', '--login-as-root', action='store_true', @cmdln.option('--userootforbuild', '--login-as-root', action='store_true',
help='Run build or shell as root. The default is to build as ' help='Run build or shell as root. The default is to build as '
'unprivileged user. Note that a line "# norootforbuild" ' 'unprivileged user. Note that a line "# norootforbuild" '