diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2007-12-16 12:00:00 +0000 |
---|---|---|
committer | Michael E Brown <mebrown@michaels-house.net> | 2007-12-16 22:03:38 -0600 |
commit | c9d02fffbedc34d38823ed635bc4ff21b0a21e63 (patch) | |
tree | 5cf995c6eae35859ffb318ef06da768a9faaa513 /py/mock.py | |
parent | 184afb1852bccc8e9d1b38dea05f30af1180f122 (diff) | |
download | mock-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-x | py/mock.py | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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", |