pamac-cli: add warning for wrong cli arguments
As far as I can tell pamac search
does not return anything if the cli arguments are incorrect.
E.g. pamac search --hrlp
is a common typo and just returns nothing.
I also noticed that other pamac
functions do not understand --wrong-flag
as flag but as argument for the operation, this already generates an error that can be easily understood.
E.g. pamac update --hrlp
returns Error: target not found: --hrlp