Show
Ignore:
Timestamp:
07/08/08 23:25:15 (6 years ago)
Author:
turam
Message:

Accept -X arguments on command line, and pass to underlying apps and into tcl interpreter

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • rat/trunk/main_engine.c

    r4137 r4213  
    7575        int             i, tc; 
    7676 
    77         if ((argc != 5)  && (argc != 8)) { 
    78                 printf("Usage: rat-%s-media [-T] -ctrl <addr> -token <token> [-token <token>]\n", RAT_VERSION); 
    79                 exit(1); 
    80         } 
    8177        tc = 0; 
    8278        for (i = 1; i < argc; i++) { 
     
    9288                        debug_msg("Enabled transcoder support\n"); 
    9389                        num_sessions = 2; 
     90                } else if (strcmp(argv[i], "-X") == 0) { 
     91                        /* accept -X arguments, but only because they get passed to tcl */ 
     92                        i++; 
    9493                } else { 
    95                         printf("Unknown argument \"%s\"\n", argv[i]); 
     94                        printf("Unknown argument to %s: \"%s\"\n", argv[0], argv[i]); 
     95                        printf("Usage: rat-%s-media [-T] -ctrl <addr> -token <token> [-token <token>] [-X arg=value]\n", RAT_VERSION); 
    9696                        abort(); 
    9797                }