summaryrefslogtreecommitdiffstats
path: root/cfgparser.c
diff options
context:
space:
mode:
Diffstat (limited to 'cfgparser.c')
-rw-r--r--cfgparser.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cfgparser.c b/cfgparser.c
index 83e4650230..0e63f04c1f 100644
--- a/cfgparser.c
+++ b/cfgparser.c
@@ -73,7 +73,8 @@ static int read_option(char *opt, char *param)
break;
}
if (i == nr_options) {
- printf("invalid option:\n");
+ if (parser_mode == CONFIG_FILE)
+ printf("invalid option:\n");
ret = ERR_NOT_AN_OPTION;
goto out;
}