summaryrefslogtreecommitdiffstats
path: root/py/mock.py
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2007-12-16 12:00:00 +0000
committerMichael E Brown <mebrown@michaels-house.net>2007-12-16 22:03:38 -0600
commitc9d02fffbedc34d38823ed635bc4ff21b0a21e63 (patch)
tree5cf995c6eae35859ffb318ef06da768a9faaa513 /py/mock.py
parent184afb1852bccc8e9d1b38dea05f30af1180f122 (diff)
downloadmock-c9d02fffbedc34d38823ed635bc4ff21b0a21e63.tar.gz
mock-c9d02fffbedc34d38823ed635bc4ff21b0a21e63.tar.xz
mock-c9d02fffbedc34d38823ed635bc4ff21b0a21e63.zip
Mock documentation patch
The attached patch adds the following option aliases: --root for -r, -D for --define (like in rpmbuild), --target for --arch (like in rpmbuild). It also adds --verbose and --quiet and -h to the man page, and fixes a couple of other minor man page issues. Signed-off-by: Michael E Brown <mebrown@michaels-house.net>
Diffstat (limited to 'py/mock.py')
-rwxr-xr-xpy/mock.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/py/mock.py b/py/mock.py
index a560c89..52d0dcd 100755
--- a/py/mock.py
+++ b/py/mock.py
@@ -106,7 +106,7 @@ def command_parse(config_opts):
help="Copy file(s) from the specified chroot")
# options
- parser.add_option("-r", action="store", type="string", dest="chroot",
+ parser.add_option("-r", "--root", action="store", type="string", dest="chroot",
help="chroot name/config file name default: %default",
default='default')
@@ -124,9 +124,9 @@ def command_parse(config_opts):
dest="cleanup_after", default=None,
help="Dont clean chroot after building. If automatic"
" cleanup is enabled, use this to disable.", )
- parser.add_option("--arch", action ="store", dest="arch",
+ parser.add_option("--target", "--arch", action ="store", dest="arch",
default=None, help="target build arch")
- parser.add_option("--define", action="append", dest="rpmmacros",
+ parser.add_option("-D", "--define", action="append", dest="rpmmacros",
default=[], type="string", metavar="'MACRO EXPR'",
help="define an rpm macro (may be used more than once)")
parser.add_option("--with", action="append", dest="rpmwith",
@@ -155,7 +155,7 @@ def command_parse(config_opts):
parser.add_option("-q", "--quiet", action="store_const", const=0,
dest="verbose", help="quiet build")
parser.add_option("--trace", action="store_true", default=False,
- dest="trace", help="quiet build")
+ dest="trace", help="TODO: document me")
# plugins
parser.add_option("--enable-plugin", action="append",