Browse Source

Remove unused options

Remove the --data-type option which is not used anymore, and the
--list-ports option which has never been implemented.
develop
Damien Goutte-Gattat 8 years ago
parent
commit
c63dde7651
  1. 9
      src/kmxtool.c

9
src/kmxtool.c

@ -35,7 +35,6 @@
#define MODE_DATA_DUMP 0x1
#define MODE_DATA_LOAD 0x2
#define MODE_PROGRAM_LIST 0x4
#define MODE_PORT_LIST 0x8
/* Globals. */
@ -221,9 +220,7 @@ main(int argc, char **argv)
{ "status", 0, NULL, 's' },
{ "dump-data", 1, NULL, 'd' },
{ "load-data", 1, NULL, 'l' },
{ "data-type", 1, NULL, 't' },
{ "list-programs", 0, NULL, 'L' },
{ "list-ports", 0, NULL, 'P' },
{ NULL, 0, NULL, 0 }
};
@ -235,7 +232,7 @@ main(int argc, char **argv)
mode = MODE_STATUS;
dump.load = 0;
while ( (c = getopt_long(argc, argv, "hvp:sd:l:t:LP",
while ( (c = getopt_long(argc, argv, "hvp:sd:l:L",
options, NULL)) != -1 ) {
switch ( c ) {
case 'h':
@ -271,10 +268,6 @@ main(int argc, char **argv)
case 'L':
mode = MODE_PROGRAM_LIST;
break;
case 'P':
mode = MODE_PORT_LIST;
break;
}
}

Loading…
Cancel
Save