Bug 440307 - missing args should be reported correctly
Summary: missing args should be reported correctly
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: yum
Version: 5.2
Hardware: All
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: James Antill
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-04-02 18:30 UTC by Jan Hutař
Modified: 2009-01-20 21:44 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-01-20 21:44:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2009:0176 0 normal SHIPPED_LIVE yum bug fix update 2009-01-20 16:05:43 UTC

Description Jan Hutař 2008-04-02 18:30:13 UTC
Description of problem:
Commands like:

yum -R (should fail, stating that an argument is required)

or:

yum -d (should fail, stating that an argument is required)

Should behave same, with error message like "Command line error: -R option 
requires an argument"


Version-Release number of selected component (if applicable):
3.2.8-9.el5


How reproducible:
always


Steps to Reproduce:
1. yum -R
2. yum -d


Actual results:
First command reports missing args, second one just outputs list of available 
options


Expected results:
All these commands (also -c, -e, --installroot...) reports missisng argument

Comment 1 Jan Hutař 2008-04-02 18:32:06 UTC
This was discovered while testing 2008:8129 and James Antill fixed it upstream:

http://devel.linux.duke.edu/gitweb/?
p=yum.git;a=commit;h=bb596fb4115689e089f6aa76efa5064de819b53d

Comment 3 James Antill 2008-09-26 21:02:08 UTC
Add a BZ that's already fixed, just an accounting thing.

Comment 9 errata-xmlrpc 2009-01-20 21:44:38 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2009-0176.html


Note You need to log in before you can comment on or make changes to this bug.