| |
@@ -1152,10 +1152,15 @@
|
| |
'--requires', action='append', metavar='name:stream',
|
| |
dest='requires', type=utils.validate_module_dep_override,
|
| |
help='Requires to override in the form of "name:stream"')
|
| |
+ optional_help_msg = (
|
| |
+ 'MBS optional arguments in the form of "key=value". For example: '
|
| |
+ "'{0} module-build --optional \"reuse_components_from=<NSVC>\"'. "
|
| |
+ "More description including list of available arguments here: "
|
| |
+ "https://pagure.io/fm-orchestrator/")
|
| |
parser.add_argument(
|
| |
'--optional', action='append', metavar='key=value',
|
| |
dest='optional', type=utils.validate_module_build_optional,
|
| |
- help='MBS optional arguments in the form of "key=value"')
|
| |
+ help=optional_help_msg.format(self.name))
|
| |
parser.add_argument(
|
| |
'--file', nargs='?', dest='file_path',
|
| |
help='The modulemd yaml file for module scratch build.')
|
| |
Enhances help for module-build command regarding option "optional" that
allows undocumented values. These values are passed to MBS and processed
there, therefore a proper link to a MBS description is provided.
Fixes: https://pagure.io/fedpkg/issue/280
Signed-off-by: Ondrej Nosek onosek@redhat.com