From 27c7eae2b59385fec7228f6bec65fbcc649637a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Voltz?= Date: Sat, 30 Oct 2010 16:23:17 +0200 Subject: [PATCH] don't print readonly controls as valid command line options --- frontend/scanimage.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/scanimage.c b/frontend/scanimage.c index 8657a727a..7a24ea15a 100644 --- a/frontend/scanimage.c +++ b/frontend/scanimage.c @@ -2141,7 +2141,8 @@ Parameters are separated by a blank from single-character options (e.g.\n\ if (!opt) opt = sane_get_option_descriptor (device, i); - print_option (device, i, opt); + if (SANE_OPTION_IS_SETTABLE (opt->cap)||opt->type==SANE_TYPE_GROUP) + print_option (device, i, opt); } if (num_dev_options) fputc ('\n', stdout);