Lines Matching refs:argv
20 main (int argc, char **argv) in main() argument
38 if (argc < 2 || !strcmp (argv[1], "--help")) in main()
45 if (strcmp ("-", argv[argc - 1]) == 0) in main()
52 in = fopen (argv[argc - 1], "rb"); in main()
57 "Error: can't open file %s.\n", argv[argc - 1]); in main()
67 "Error: %s is not a valid PNG file.\n", argv[argc - 1]); in main()
74 if (!strcmp (argv[i], "--help")) in main()
80 else if (!strcmp (argv[i], "-i")) in main()
89 if (!strcmp (argv[i + 1], "y")) in main()
94 else if (!strcmp (argv[i + 1], "n")) in main()
110 else if (!strcmp (argv[i], "-t")) in main()
121 if (!strcmp (argv[i + 1], "none")) in main()
129 index = atoi (argv[i + 1]); in main()
136 else if (!strcmp (argv[i], "-l")) in main()
161 else if (!strcmp (argv[i], "-d")) in main()
188 else if (!strcmp(argv[i], "-a")) in main()
224 fprintf (stderr, "Unknown argument: %s\n", argv[i]); in main()
273 unlink (argv[argc - 1]); in main()
275 if (rename (outFn, argv[argc - 1]) != 0) in main()