From: leslie Date: Sun, 3 Jan 2010 15:17:58 +0000 (+0100) Subject: cleanup commandline options X-Git-Tag: upstream/620~118 X-Git-Url: http://www.vanbest.org/gitweb/?a=commitdiff_plain;h=5dfd83729b465b1641e840b37f9a5afb227f699b;p=sasc-ng.git cleanup commandline options --- diff --git a/README b/README index b736e2e..b0009c7 100644 --- a/README +++ b/README @@ -306,7 +306,8 @@ particular connection until next channel switch. Summary of commandline options ------------------------------ --B N --budget=N forces DVB device N to budget mode (using FFdecsa) +-B N --budget=N forces DVB device N to budget mode (using FFdecsa) +-E CMD --external-au=CMD script for external key updates diff --git a/sc.c b/sc.c index 392f057..85dc9d5 100644 --- a/sc.c +++ b/sc.c @@ -1345,7 +1345,8 @@ const char *cScPlugin::CommandLineHelp(void) static char *help_str=0; free(help_str); // for easier orientation, this is column 80| - help_str=bprintf( " -B N --budget=N forces DVB device N to budget mode (using FFdecsa)\n" + help_str=bprintf( " -B N --budget=N forces DVB device N to budget mode (using FFdecsa)\n" + " -E CMD --external-au=CMD script for external key updates\n" ); return help_str; } @@ -1353,22 +1354,14 @@ const char *cScPlugin::CommandLineHelp(void) bool cScPlugin::ProcessArgs(int argc, char *argv[]) { static struct option long_options[] = { - { "serial", optional_argument, NULL, 's' }, - { "inverse-cd", no_argument, NULL, 'I' }, - { "inverse-rst", no_argument, NULL, 'R' }, - { "clock", optional_argument, NULL, 'C' }, { "external-au", required_argument, NULL, 'E' }, { "budget", required_argument, NULL, 'B' }, { NULL } }; int c, option_index=0; - while((c=getopt_long(argc,argv,"s:B:C:E:IR",long_options,&option_index))!=-1) { + while((c=getopt_long(argc,argv,"B:E:",long_options,&option_index))!=-1) { switch (c) { - case 'I': - case 'R': - case 'C': - case 's': fprintf(stderr,"smartcard commandline options were removed. use cardslot.conf\n"); return false; case 'E': externalAU=optarg; break; case 'B': cScDvbDevice::SetForceBudget(atoi(optarg)); break; default: return false;