... > > > + switch (ret) { > > > + case '?': > > No usage? > Ah, make sense to -? be alias of -h. I mean to call usage() before return 1. Kind regards, Petr > > > + return 1; > > > + > > > + case 'h': > > > + usage(); > > > + return 0;