Bug 151704

Summary: yum doesn't use standard command line parser?
Product: [Fedora] Fedora Reporter: Need Real Name <lsof>
Component: yumAssignee: Jeremy Katz <katzj>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 4CC: katzj
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-03-22 18:58:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Need Real Name 2005-03-21 19:50:58 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050313 Epiphany/1.5.8

Description of problem:
yum doesn't allow the generous (and intuitive) parsing of command line arguments which other programs allow.

For example, yum -y update --exclude="openoffice*" fails completely.
yum -y --exclude="openoffice*" update works.

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
x

Additional info:

Comment 1 Seth Vidal 2005-03-22 18:58:58 UTC
The problem is that for pkg names it's impossible to separate them out.

remember a package name could easily be

--exclude=*foo*

so yum can't know any different.


Comment 2 Need Real Name 2005-03-22 19:07:40 UTC
Why is --exclude=*foo* a problem? It doesn't begin with a hyphen..

Comment 3 Seth Vidal 2005-03-22 19:10:59 UTC
everything coming AFTER the command is considered an argument, not an option/flag

--option/-flag command arg arg arg

so if you have:
-y update --exclude=foo --exclude=bar

then yum will think:
update --exclude=foo --exclude=bar

and fail to find those items available for update, ie: it's looking for pkgs named:
 --exclude=foo and --exclude=bar

do see what I'm saying?

Comment 4 Need Real Name 2005-03-22 19:14:52 UTC
Yes, and that's the bug. It's less flexible with command line arguments that
other programs.