summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Gregory <andrew.gregory.8@gmail.com>2013-10-12 19:32:07 +0200
committerAllan McRae <allan@archlinux.org>2013-10-14 05:01:15 +0200
commit3b804cb6543e10e3bc5f32af23925c35aadce444 (patch)
tree3aea08178c99c28af3eca3880f1bfe0ebde0f884 /src
parent122e16106fdcc30918e53832edd9c70fe3772054 (diff)
downloadpacman-3b804cb6543e10e3bc5f32af23925c35aadce444.tar.gz
pacman-3b804cb6543e10e3bc5f32af23925c35aadce444.tar.xz
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>
Diffstat (limited to 'src')
-rw-r--r--src/pacman/pacman.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c
index 93baa441..11f92cf7 100644
--- a/src/pacman/pacman.c
+++ b/src/pacman/pacman.c
@@ -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: