From 283618a4a2dbf9a9f64c98d120b88ff272a7d777 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 19 Mar 2011 21:50:11 +0100 Subject: When called without file arguments: Show files in $PWD --- ChangeLog | 1 + src/options.c | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index bbe7d06..5a0e708 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,7 @@ git HEAD * Fix segfault upon unloadable images when image-related format specifiers (e.g. %h) are used in --title + * Show images in current directory when invoked without file arguments Sat, 12 Mar 2011 22:49:53 +0100 Daniel Friesel diff --git a/src/options.c b/src/options.c index 8d54360..9afbeb0 100644 --- a/src/options.c +++ b/src/options.c @@ -111,8 +111,10 @@ void init_parse_options(int argc, char **argv) return; filelist_len = gib_list_length(filelist); - if (!filelist_len) - show_mini_usage(); + if (!filelist_len) { + add_file_to_filelist_recursively(".", FILELIST_FIRST); + filelist_len = gib_list_length(filelist); + } check_options(); -- cgit v1.2.3