/*
** cmdline.c for elfsh
** 
** Started on  Fri Nov  2 15:21:56 2001 mayhem
** Last update Sun Mar 24 09:28:10 2002 mayhem
*/
#include "elfsh.h"





/* The flex/bison based interpretor is on the way, there is no interative mode yet */


void	help()
{
  printf(" - quit \n"
	 " - help \n");
}


void	quit()
{
  puts("Cya later .");
  exit(0);
}


void	unknown(char *line)
{
  printf("Unknown command *%s* \n", line);
}


/*
** Interactive mode (only if argc == 1)
** Future start function for the interactive shell 
*/
/*
void		imode()
{
  char	*line;
  while ((line = readline(PROMPT)))
  if (!strcmp(line, "quit"))
    quit();
  else if (!strcmp(line, "help"))
    help();
  else
    unknown(line);
}
*/


void		imode()
{
  printf("\nThere is no interactive mode implemented !\n");
  usage("elfsh");
  exit(-1);
}


