Ignore:
Timestamp:
02/26/09 20:41:48 (15 years ago)
Author:
r2d
Message:
  • Added a special case to ignore --xlevel and --noxlevel options
  • Changed behavior when and unknow option is found : exit without prompt
  • Changed version to 1.30.0
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libmpc/trunk/mpcenc/mpcenc.c

    r427 r435  
    980980            m->ShortThr = (float) atof (argv[k]);
    981981        }
     982            else if ( 0 == strcmp ( arg, "xlevel") || 0 == strcmp ( arg, "noxlevel") ) {
     983                    stderr_printf ( "\nXlevel coding not needed anymore, --%s ignored.\n", arg );
     984            }
    982985        else if ( 0 == strcmp ( arg, "nmt") ) {                                         // NMT
    983986            if ( ++k >= argc ) { stderr_printf ( errmsg, arg );  return -1; }
     
    12241227        }
    12251228        else {
    1226             char c;
    12271229            stderr_printf ( "\n\033[33;41;1mERROR\033[0m: unknown option '--%s' !\n", arg );
    1228 
    1229             stderr_printf ( "\nNevertheless continue with encoding (Y/n)? \a" );
    1230             c = waitkey ();
    1231             if ( c != 'Y' && c != 'y' ) {
    1232                 stderr_printf ( "\n\n*** Abort ***\n" );
    1233                 return -1;
    1234             }
    1235             stderr_printf ( "\n" );
     1230                shorthelp();
     1231            return -1;
    12361232        }
    12371233    }
Note: See TracChangeset for help on using the changeset viewer.