Newer
Older
**
** Made by Seblu
** Login <seblu@epita.fr>
**
** Started on Sun Jul 30 03:28:26 2006 Seblu
/*!
** Parse the command line
**
** @param argc program argc
** @param argv program argv
** @param opt shell opt structure to set with options
*/
printf("* Option Parser\n");
#endif
if (argc == 1)
return;
printf("argv[%d]=%s\n", i, argv[i]);
const char *copt = argv[i];
if (!strcmp(copt, "-c") || !strcmp(copt, "--command")) {
opt->command = strvmerge((const char**)argv + i + 1);
printf("option c: %s\n", opt->command);
else if (!strcmp(copt, "--ast-print"))
else {
printf("Error: Invalid option %s\n", copt);
exit(1);
}