/***************************************************************************
*                                                                          *
* testcli.c                                                                *
*                                                                          *
* this program is a test harness to ensure that parsecli.c can correctly   *
* parse the CLI arguments                                                  *
*                                                                          *
***************************************************************************/

#define VERSION "etb 1.00 (26.2.95)\n"
#include "mcstring.c"
#include "parsecli.c"


main(int argc, char **argv)
{
   /* embed a version number - mainly for use with an Amiga */
   char version[100]="$VER: \0";
   strcat(version,VERSION);    /* particularly useful for Amigans */

   /* parse the CLI */
   int ledger_arg=0 ; /* possible location of the -l option */
   ledger_arg=parsecli(argc,argv);



   /* what we think the results are */
   printf("Results of CLI parsing : \n");
   printf("   info = %d\n",hyphen_info);
   printf("   -d   = %d\n",hyphen_d);
   printf("   -l   = %d\n",hyphen_l);
   printf("   -n   = %d\n",hyphen_n);
   printf("Arg associated with -l is %s\n",argv[ledger_arg]);
}
