rmarquis / pacaur

[unmaintained] An AUR helper that minimizes user interaction
https://bbs.archlinux.org/viewtopic.php?pid=1755144#p1755144
ISC License
796 stars 113 forks source link

Argument parser doesn't stop at -- #764

Open thomwiggers opened 6 years ago

thomwiggers commented 6 years ago
Version

pacaur -v

pacaur 4.7.10
Description

When trying to search for things that start with a -, pacaurs argument parser always views them as arguments to Pacaur/Pacman. This should not happen when using -- to separate the flags from command args.

Output

pacaur -Qs -- -git

error: invalid option: '--search' and '--groups' may not be used together

pacman -Qs -- -git

local/autorandr-git 1.1.r10.g6890caf-1
    Auto-detect the connect display hardware and load the appropiate X11 setup using xrandr.
    Formerly autodisper. No disper support.
[....]
rmarquis commented 6 years ago

Yeah, there are quite a few issues with the current parser. Using makepkg parser is planned (see #708).