Browse Source

* Added an optional argument to the import test to select import format.

tags/v0.99.beta14
Sam Hocevar sam 18 years ago
parent
commit
644a4ba8ec
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      test/import.c

+ 2
- 1
test/import.c View File

@@ -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 <filename> [<format>]\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]);


Loading…
Cancel
Save