diff options
author | Hans Ulrich Niedermann <hun@n-dimensional.de> | 2011-02-05 01:24:28 +0100 |
---|---|---|
committer | Hans Ulrich Niedermann <hun@n-dimensional.de> | 2011-02-05 01:24:28 +0100 |
commit | 2580fd3d05d6e2d0c13cf0dbfecb09302a381937 (patch) | |
tree | 766b125fac75c84a4ed17a391032fd98d4776066 /src/fedpkg.py | |
parent | 4526d5b713fb36e30e79784b8f1182e6062b45b0 (diff) | |
parent | c554d2c5284eb3dd6dc37b5b709a7d59d37c86c8 (diff) | |
download | fedora-packager-2580fd3d05d6e2d0c13cf0dbfecb09302a381937.tar.gz fedora-packager-2580fd3d05d6e2d0c13cf0dbfecb09302a381937.tar.xz fedora-packager-2580fd3d05d6e2d0c13cf0dbfecb09302a381937.zip |
Merge branch '5/man-page' into 5/ALL
Diffstat (limited to 'src/fedpkg.py')
-rwxr-xr-x | src/fedpkg.py | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/fedpkg.py b/src/fedpkg.py index 207f479..cfb0bcc 100755 --- a/src/fedpkg.py +++ b/src/fedpkg.py @@ -1230,8 +1230,19 @@ packages will be built sequentially. ' name-version-release') parser_verrel.set_defaults(command = verrel) - # Parse the args - return parser.parse_args() + if not generate_manpage: + # Parse the args + return parser.parse_args() + else: + # Generate the man page + + # Use the "as man_page" part to avoid overwriting the pyfedpkg + # namespace, which would break all usage of pyfedpkg.* outside + # of this else branch. + import pyfedpkg.man_page as man_page + man_page.generate(parser, subparsers) + sys.exit(0) + # no return possible # The main code goes here |