to github
[svn42.git] / powersensordaemon / options.c
index c0addda..51aabd9 100644 (file)
@@ -192,7 +192,6 @@ int options_parse(options_t* opt, int argc, char* argv[])
     PARSE_STRING_PARAM("-s","--socket", opt->command_sock_)
     PARSE_STRING_PARAM("-p","--powerid-file", opt->powerid_file_)
     PARSE_STRING_PARAM("-a","--sampledev-file", opt->sampledev_file_)
-    PARSE_STRING_PARAM("-a","--sampledev-file", opt->sampledev_file_)
     PARSE_KEY_VALUE("-A","--autosampledev", ',', opt->autosampledevs_)
     else 
       return i;
@@ -360,5 +359,6 @@ void options_print(options_t* opt)
   printf("sampledev_file: '%s'\n", opt->sampledev_file_);
   printf("sampledevs: \n");
   key_value_storage_print(&opt->sampledevs_, "  '", "' -> '", "'\n");
+  printf("autosampledevs: \n");
   key_value_storage_print(&opt->autosampledevs_, "  '", "' -> '", "'\n");
 }