diff options
-rw-r--r-- | docs/mock.1 | 4 | ||||
-rwxr-xr-x | py/mock.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/docs/mock.1 b/docs/mock.1 index ca212b5..17b5081 100644 --- a/docs/mock.1 +++ b/docs/mock.1 @@ -56,10 +56,10 @@ Dont clean chroot after building. If automatic cleanup is enabled, use this to d \fB\-\-arch=\fR\fIARCH\fP Specify target build arch. .TP -\fB\-\-define=\fR"\fINAME VALUE\fP" +\fB\-\-define=\fR"\fIMACRO EXPR\fP" Specify macro definitions used for the build. This option may be used multiple times, just as the rpmbuild \-\-define option can be. For example: -\fB\-\-define="vendor Not Fedora" \-\-define="packager Some guy"\fR +\fB\-\-define="with_extra_cheese 1" \-\-define="packager Monkey"\fR .TP \fB\-\-resultdir=\fR\fIRESULTDIR\fP Change directory where resulting files (RPMs and build logs) are written. Resultdir can contain python-string substitutions for any variable in the chroot config. For example: @@ -104,7 +104,7 @@ def command_parse(config_opts): parser.add_option("--arch", action ="store", dest="arch", default=None, help="target build arch") parser.add_option("--define", action="append", dest="rpmmacros", - default=[], type="string", metavar="'NAME VALUE'", + default=[], type="string", metavar="'MACRO EXPR'", help="define an rpm macro (may be used more than once)") parser.add_option("--resultdir", action="store", type="string", default=None, help="path for resulting files to be put") @@ -232,7 +232,7 @@ def set_config_opts_per_cmdline(config_opts, options, args): config_opts['macros'].update({k: v}) except: raise mock.exception.BadCmdline( - "Bad option for '--define' (%s). Use --define 'name value'" + "Bad option for '--define' (%s). Use --define 'macro expr'" % macro) if options.resultdir: |