Merge branch 'master' of ssh://tetalab.org/tTh/FloatImg
krkrkr
This commit is contained in:
commit
2b62730f47
@ -96,15 +96,20 @@ if (argc == 1) {
|
|||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
while ((opt = getopt(argc, argv, "cv")) != -1) {
|
while ((opt = getopt(argc, argv, "chv")) != -1) {
|
||||||
switch(opt) {
|
switch(opt) {
|
||||||
case 'c': make_csv++; break;
|
case 'c': make_csv++; break;
|
||||||
case 'v': verbosity++; break;
|
case 'v': verbosity++; break;
|
||||||
|
|
||||||
|
case 'h': /* tombe dedans */
|
||||||
default: help(1); exit(1);
|
default: help(1); exit(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (NULL==argv[optind]) {
|
||||||
|
fprintf(stderr, "optind %d is wtf\n", optind);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
foo = various_numbers_from_file(argv[optind], 0);
|
foo = various_numbers_from_file(argv[optind], 0);
|
||||||
if (foo) {
|
if (foo) {
|
||||||
fprintf(stderr, "got a %d ?\n", foo);
|
fprintf(stderr, "got a %d ?\n", foo);
|
||||||
|
Loading…
Reference in New Issue
Block a user