X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=sources%2Ftee.c;h=8c09ae35bae08e4ee7118a6be8a9f25ca7621e26;hp=d876ad998c31cd7a9f7381de8ef976f38497f959;hb=5077cb02e6a65499d7fddcd01d68e8800c73a6fa;hpb=102049e7a564ba91d336f7c9b2f027067f9c48dd diff --git a/sources/tee.c b/sources/tee.c index d876ad9..8c09ae3 100644 --- a/sources/tee.c +++ b/sources/tee.c @@ -62,7 +62,7 @@ int main(int argc, char *argv[]) * Use getopt function */ opterr = 0; /* don't want writing to stderr */ - while ( (i = getopt(argc, argv, "h")) != -1) { + while ( (i = getopt(argc, argv, "hs:")) != -1) { switch (i) { /* * Handling options @@ -72,7 +72,7 @@ int main(int argc, char *argv[]) usage(); return -1; break; - case 's': /* take wait time for childen */ + case 's': /* buffer size */ size = strtol(optarg, NULL, 10); /* convert input */ break; case '?': /* unrecognized options */