From 644a4ba8eca551af8369a9a2ed7d2af300e756d7 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Sat, 30 Sep 2006 18:24:10 +0000 Subject: [PATCH] * Added an optional argument to the import test to select import format. --- test/import.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/import.c b/test/import.c index 87dd8d8..8c0ba36 100644 --- a/test/import.c +++ b/test/import.c @@ -36,6 +36,7 @@ int main(int argc, char *argv[]) if(argc < 2) { fprintf(stderr, "%s: missing argument (filename).\n", argv[0]); + fprintf(stderr, "usage: %s []\n", argv[0]); return 1; } @@ -46,7 +47,7 @@ int main(int argc, char *argv[]) return 1; } - cv = cucul_import_canvas(b, ""); + cv = cucul_import_canvas(b, argc >= 3 ? argv[2] : ""); if(!cv) { fprintf(stderr, "%s: could not import `%s'.\n", argv[0], argv[1]);