From b4c780ac731398b5ebeb04b95f763c9e08b814c2 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Tue, 11 Nov 2014 01:08:32 +0100 Subject: Implement functionality part of --write argument --- src/yawa.c | 2 +- src/yawa.h | 2 +- 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} }; -- cgit v1.2.3-54-g00ecf