aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2014-11-11 01:08:32 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2014-11-11 01:08:32 +0100
commitb4c780ac731398b5ebeb04b95f763c9e08b814c2 (patch)
treea658988e43398bb5174caa83b1f75d068236d086 /src
parent488be6bee4be864ca96bf9ab0f88ec323b06c6e5 (diff)
downloadyawa-b4c780ac731398b5ebeb04b95f763c9e08b814c2.tar.xz
Implement functionality part of --write argument
Diffstat (limited to 'src')
-rw-r--r--src/yawa.c2
-rw-r--r--src/yawa.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/yawa.c b/src/yawa.c
index 5b37bac..ef45953 100644
--- a/src/yawa.c
+++ b/src/yawa.c
@@ -466,7 +466,7 @@ main(int argc, char **argv)
}
if (arguments.write) {
- imlib_save_image(argv[i]);
+ imlib_save_image(arguments.write_file);
}
if (modifier != NULL) {
diff --git a/src/yawa.h b/src/yawa.h
index 7cafd2c..ac4cd4d 100644
--- a/src/yawa.h
+++ b/src/yawa.h
@@ -100,7 +100,7 @@ static struct argp_option options[] = {
{0, 0, 0, 0, "Misc:", -1},
{"alpha", 'A', "AMOUNT", 0, "Adjust alpha level for colors and images", -1},
- {"write", 'w', "FILENAME", 0, "Write the current image to a file", -1}, // Not implemented
+ {"write", 'w', "FILENAME", 0, "Write the current image to a file", -1},
{0, 0, 0, 0, 0, 0}
};