canplayer.c: Reformat help/usage output to be compatible with help2man.
Signed-off-by: Alexander Gerasiov <gq@debian.org> Gbp-Pq: Name 0009-canplayer.c-Reformat-help-usage-output-to-be-compati.patchpull/69/head
parent
65399166c1
commit
3e2c1d3cbd
|
|
@ -77,8 +77,10 @@ extern int optind, opterr, optopt;
|
||||||
|
|
||||||
void print_usage(char *prg)
|
void print_usage(char *prg)
|
||||||
{
|
{
|
||||||
|
fprintf(stderr, "%s - replay a compact CAN frame logfile to CAN devices.\n", prg);
|
||||||
fprintf(stderr, "\nUsage: %s <options> [interface assignment]*\n\n", prg);
|
fprintf(stderr, "\nUsage: %s <options> [interface assignment]*\n\n", prg);
|
||||||
fprintf(stderr, "Options: -I <infile> (default stdin)\n");
|
fprintf(stderr, "Options:\n");
|
||||||
|
fprintf(stderr, " -I <infile> (default stdin)\n");
|
||||||
fprintf(stderr, " -l <num> "
|
fprintf(stderr, " -l <num> "
|
||||||
"(process input file <num> times)\n"
|
"(process input file <num> times)\n"
|
||||||
" "
|
" "
|
||||||
|
|
@ -93,8 +95,8 @@ void print_usage(char *prg)
|
||||||
"loopback of sent CAN frames)\n");
|
"loopback of sent CAN frames)\n");
|
||||||
fprintf(stderr, " -v (verbose: print "
|
fprintf(stderr, " -v (verbose: print "
|
||||||
"sent CAN frames)\n\n");
|
"sent CAN frames)\n\n");
|
||||||
fprintf(stderr, "Interface assignment: 0..n assignments like "
|
fprintf(stderr, "Interface assignment:\n");
|
||||||
"<write-if>=<log-if>\n");
|
fprintf(stderr, " 0..n assignments like <write-if>=<log-if>\n\n");
|
||||||
fprintf(stderr, " e.g. vcan2=can0 (send frames received from can0 on "
|
fprintf(stderr, " e.g. vcan2=can0 (send frames received from can0 on "
|
||||||
"vcan2)\n");
|
"vcan2)\n");
|
||||||
fprintf(stderr, " extra hook: stdout=can0 (print logfile line marked with can0 on "
|
fprintf(stderr, " extra hook: stdout=can0 (print logfile line marked with can0 on "
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue