summaryrefslogtreecommitdiff
path: root/src/options.c
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2013-09-26 18:36:57 +0200
committerDaniel Friesel <derf@finalrewind.org>2013-09-26 18:36:57 +0200
commitf74385dec092224d046dddc02b731ee30405710f (patch)
tree609796a8763e62828b75ad724fa9bc40c088cc05 /src/options.c
parentd49a455c65c14a0c02d10fd296bbda83a9e14e8f (diff)
add "--info ;cmd" to disable info display on startup (closes #142)
Diffstat (limited to 'src/options.c')
-rw-r--r--src/options.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/options.c b/src/options.c
index 627c7da..c6166d9 100644
--- a/src/options.c
+++ b/src/options.c
@@ -717,7 +717,10 @@ static void feh_parse_option_array(int argc, char **argv, int finalrun)
break;
case 234:
opt.info_cmd = estrdup(optarg);
- opt.draw_info = 1;
+ if (opt.info_cmd[0] == ';')
+ opt.info_cmd++;
+ else
+ opt.draw_info = 1;
break;
case 235:
opt.force_aliasing = 1;