aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/imv.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/imv.c b/src/imv.c
index 8a510ce..0e37e20 100644
--- a/src/imv.c
+++ b/src/imv.c
@@ -263,6 +263,11 @@ bool imv_parse_args(struct imv *imv, int argc, char **argv)
/* if no paths are given as args, expect them from stdin */
if(argc == 0) {
imv->paths_from_stdin = true;
+ } else {
+ /* otherwise, add the paths */
+ for(int i = 0; i < argc; ++i) {
+ imv_add_path(imv, argv[i]);
+ }
}
if(imv->paths_from_stdin) {