summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2005-08-25 11:52:01 +0000
committerSascha Hauer <s.hauer@pengutronix.de>2005-08-25 11:52:01 +0000
commit117f866d5c704b7451291de58717416275770aab (patch)
treed2ba2985faabb20b4de6bc230ff46d0a520eae86
parentdd074294de0c71525656d643002e44d3ce5a54b2 (diff)
downloadcanutils-117f866d5c704b7451291de58717416275770aab.tar.gz
add --type option (was in help but not implemented)
git-svn-id: https://iocaste.extern.pengutronix.de/svn/canutils/trunks/canutils-1.0-trunk@32 5fd5a299-6ef2-0310-aa18-8b01d7c39d8c
-rw-r--r--cansend.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/cansend.c b/cansend.c
index f5b628c..fb41e28 100644
--- a/cansend.c
+++ b/cansend.c
@@ -63,6 +63,7 @@ int main(int argc, char **argv)
{ "identifier", required_argument, 0, 'i'},
{ "family", required_argument, 0, 'f' },
{ "protocol", required_argument, 0, 'p' },
+ { "type", required_argument, 0, 't' },
{ "version", no_argument, 0, VERSION_OPTION},
{ "verbose", no_argument, 0, 'v'},
{ "loop", required_argument, 0, 'l'},
@@ -106,9 +107,6 @@ int main(int argc, char **argv)
printf("cansend %s\n",VERSION);
exit(0);
- case '?':
- break;
-
default:
fprintf(stderr, "Unknown option %c\n", opt);
break;