Description of problem: traceback with incorrect option Version-Release number of selected component (if applicable): fedpkg-0.5.6.0-1.fc14.noarch How reproducible: fedpkg help Traceback (most recent call last): File "/usr/bin/fedpkg", line 1480, in <module> args.command(args) File "/usr/bin/fedpkg", line 145, in usage parser.print_help() NameError: global name 'parser' is not defined Actual results: traceback Expected results: nice error message
Yeah, this bug came up when we added support for generating a man page. As a workaround you can do "fedpkg --help" instead. I'll get this fixed in the next release.
This came up on #fedora-devel a few weeks ago, and the fix has been at git://fedorapeople.org/~ndim/fedora-packager.git branch fix-help-command ever since. Another related "fedpkg help" issue came up in that IRC conversation as well, which I implemented in the "help-command-with-subcommands" branch: That also makes "fedpkg help srpm" work, including bash tab completion.
hrm, I can see how the commit fixes fedpkg help, but how does it do anything for tab completion after help? Is there another commit somewhere? I cherry-picked 4c5d0003ca3cace64ea780ca4121c46487b5899e over to my bugfix branch and will push it soon.
(In reply to comment #3) > hrm, I can see how the commit fixes fedpkg help, but how does it do anything > for tab completion after help? Is there another commit somewhere? As I wrote, the fix (which you found) is in the "fix-help-command" branch. The "fedpkg help foo" stuff including bash completion is in a separate branch called "help-command-with-subcommands", to separate bugfix from feature. > I cherry-picked 4c5d0003ca3cace64ea780ca4121c46487b5899e over to my bugfix > branch and will push it soon. Which should close this bug. Good.
*** Bug 682497 has been marked as a duplicate of this bug. ***
fedora-packager-0.5.7.0-1.fc13 has been submitted as an update for Fedora 13. https://admin.fedoraproject.org/updates/fedora-packager-0.5.7.0-1.fc13
fedora-packager-0.5.7.0-1.fc14 has been submitted as an update for Fedora 14. https://admin.fedoraproject.org/updates/fedora-packager-0.5.7.0-1.fc14
fedora-packager-0.5.7.0-1.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/fedora-packager-0.5.7.0-1.fc15
fedora-packager-0.5.7.0-1.fc15 has been pushed to the Fedora 15 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update fedora-packager'. You can provide feedback for this update here: https://admin.fedoraproject.org/updates/fedora-packager-0.5.7.0-1.fc15
fedora-packager-0.5.7.0-1.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report.
fedora-packager-0.5.7.0-1.fc13 has been pushed to the Fedora 13 stable repository. If problems still persist, please make note of it in this bug report.
fedora-packager-0.5.7.0-1.fc14 has been pushed to the Fedora 14 stable repository. If problems still persist, please make note of it in this bug report.