Red Hat Bugzilla – Bug 151704
yum doesn't use standard command line parser?
Last modified: 2014-01-21 17:51:16 EST
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):
Steps to Reproduce:
The problem is that for pkg names it's impossible to separate them out.
remember a package name could easily be
so yum can't know any different.
Why is --exclude=*foo* a problem? It doesn't begin with a hyphen..
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?
Yes, and that's the bug. It's less flexible with command line arguments that