Changed option name '-l' to '-x' as this option should also go into canplayer.
Cosmetics in print_help().pull/7/head
parent
c2c6579bd6
commit
a121452698
8
cangen.c
8
cangen.c
|
|
@ -89,8 +89,8 @@ void print_usage(char *prg)
|
|||
"default: 8\n");
|
||||
fprintf(stderr, " -f <canframe> (other fixed CAN frame) "
|
||||
"default: 123#0123456789ABCDEF\n");
|
||||
fprintf(stderr, " -l (local loopback disable) "
|
||||
"default: loopback\n");
|
||||
fprintf(stderr, " -x (disable loopback) "
|
||||
"default: standard loopback\n");
|
||||
fprintf(stderr, " -v (verbose) "
|
||||
"default: don't print sent frames\n");
|
||||
}
|
||||
|
|
@ -125,7 +125,7 @@ int main(int argc, char **argv)
|
|||
signal(SIGHUP, sigterm);
|
||||
signal(SIGINT, sigterm);
|
||||
|
||||
while ((opt = getopt(argc, argv, "g:eIDLf:lv")) != -1) {
|
||||
while ((opt = getopt(argc, argv, "g:eIDLf:xv")) != -1) {
|
||||
switch (opt) {
|
||||
case 'g':
|
||||
gap = strtoul(optarg, NULL, 10);
|
||||
|
|
@ -159,7 +159,7 @@ int main(int argc, char **argv)
|
|||
verbose = 1;
|
||||
break;
|
||||
|
||||
case 'l':
|
||||
case 'x':
|
||||
loopback_disable = 1;
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue