[pacman-dev] [PATCH] libmakepkg: fix empty arguments in parseopts

Ethan Sommer e5ten.arch at gmail.com
Sat Nov 2 00:27:07 UTC 2019


> When parsing options, is there any case where an empty argument is
> functionally different from a missing one?
>
> I.e. what is the justification for considering empty arguments?
makepkg --config='' --clean
==> ERROR: --clean not found.
    Aborting...

I think that this isn't correct and makes it less clear than it should
be why the error is happening, i.e. the option parsing is incorrect when
the options passed should be completely valid to the parser, and only
the program itself should consider them incorrect.


More information about the pacman-dev mailing list