New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"mock --help" outputs "Usage: 4 [options]" instead of "Usage: mock [options]" #738
Comments
This stems from optparse. Which we still use. It is depracated. We should rewrite our code to use argparse. |
Agreed, I already started working on this .. but it is not a 2-minute thing as I thought :-( so I'll try to take a look later today. |
The __doc__ variable points to the first expression in the file, believing that it is a string statement (but it was not before). Fixes: rpm-software-management#738
The __doc__ variable points to the first expression in the file, believing that it is a string statement (but it was not before). Fixes: rpm-software-management#738
Eventually no, the problem was with the |
The __doc__ variable points to the first expression in the file, believing that it is a string statement (but it was not before). Also the "Usage" string was duplicated in --help ouptut, so drop one of the occurences from the __doc__ string. Fixes: rpm-software-management#738
Oh, well, see also this report against usermode 1.114 https://bugzilla.redhat.com/show_bug.cgi?id=1969918 |
On Fedora 33 and 34,
mock --help
outputs:The first line should probably be
Usage: mock [options]
.The text was updated successfully, but these errors were encountered: