Changeset 1153 for libcaca


Ignore:
Timestamp:
Sep 30, 2006, 8:24:10 PM (16 years ago)
Author:
Sam Hocevar
Message:
  • Added an optional argument to the import test to select import format.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/test/import.c

    r1048 r1153  
    3737    {
    3838        fprintf(stderr, "%s: missing argument (filename).\n", argv[0]);
     39        fprintf(stderr, "usage: %s <filename> [<format>]\n", argv[0]);
    3940        return 1;
    4041    }
     
    4748    }
    4849
    49     cv = cucul_import_canvas(b, "");
     50    cv = cucul_import_canvas(b, argc >= 3 ? argv[2] : "");
    5051    if(!cv)
    5152    {
Note: See TracChangeset for help on using the changeset viewer.