summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-03-19 21:50:11 +0100
committerDaniel Friesel <derf@finalrewind.org>2011-03-19 21:50:11 +0100
commit283618a4a2dbf9a9f64c98d120b88ff272a7d777 (patch)
tree0214a1ecc3e16268b5be81c333967de0a206d906 /src
parentfc9b1deb56fb26e79788ba97193097923a883a84 (diff)
When called without file arguments: Show files in $PWD
Diffstat (limited to 'src')
-rw-r--r--src/options.c6
1 files changed, 4 insertions, 2 deletions
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();