]> www.vanbest.org Git - sasc-ng.git/commitdiff
cleanup commandline options
authorleslie <unknown>
Sun, 3 Jan 2010 15:17:58 +0000 (16:17 +0100)
committerleslie <unknown>
Sun, 3 Jan 2010 15:17:58 +0000 (16:17 +0100)
README
sc.c

diff --git a/README b/README
index b736e2e20de75c782368b24e8c0f959d5c026b01..b0009c765c4b69eb2f5134e2f24b5c9783f62e8d 100644 (file)
--- 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 392f057456a530a98b68e904228645dbb59601ff..85dc9d55ad31d87674a1ab080a5b346672f1ba00 100644 (file)
--- 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;