Newer
Older
**
** Made by Seblu
** Login <seblu@epita.fr>
**
** Started on Sun Jul 30 03:28:26 2006 Seblu
#include "../common/common.h"
/*!
** Parse the command line
**
** @param argc program argc
** @param argv program argv
** @param opt shell opt structure to set with options
*/
void option_parser(ts_options *opt, int argc, char **argv)
printf("* Option Parser\n");
#endif
if (argc == 1)
return;
for (int i = 1; i < argc; ++i)
{
printf("argv[%d]=%s\n", i, argv[i]);
#endif
const char *copt = argv[i];
if (*copt == '-')
{
if (copt[1] == 'c')
{
opt->command = strvmerge((const char**)argv + i + 1);