mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-21 23:38:49 -05:00
imply --print from --print-format
--print-format is totally useless without --print. Implying --print will also save us the hassle of checking it when we add transaction option validation. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
122e16106f
commit
3b804cb654
@ -204,7 +204,7 @@ Transaction Options (apply to '-S', '-R' and '-U')
|
||||
*\--print-format* <format>::
|
||||
Specify a printf-like format to control the output of the '\--print'
|
||||
operation. The possible attributes are: %n for pkgname, %v for pkgver,
|
||||
%l for location, %r for repo, and %s for size.
|
||||
%l for location, %r for repo, and %s for size. Implies '\--print'.
|
||||
|
||||
Upgrade Options (apply to '-S' and '-U')[[UO]]
|
||||
--------------------------------------------
|
||||
|
@ -574,6 +574,7 @@ static int parsearg_trans(int opt)
|
||||
break;
|
||||
case OP_PRINTFORMAT:
|
||||
check_optarg();
|
||||
config->print = 1;
|
||||
config->print_format = strdup(optarg);
|
||||
break;
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user