From 112421dc22872ebebf0088652d6714354054673d Mon Sep 17 00:00:00 2001 From: josemic Date: Wed, 17 Jun 2020 11:06:32 +0200 Subject: [PATCH 1/2] j1939acd: fix help examples Changed j1939acd help examples by removing duplicate example. Fixes: 506252e9bcd0 ("jacd.c: Reformat help/usage output to be compatible with help2man.") --- j1939acd.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/j1939acd.c b/j1939acd.c index 65e4f2a..73caaa1 100644 --- a/j1939acd.c +++ b/j1939acd.c @@ -42,8 +42,6 @@ static const char help_msg[] = "\n" "NAME is the 64bit nodename" "\n" "\n" - "Example:" "\n" - "j1939acd -r 100,80-120 -c /tmp/1122334455667788.jacd 1122334455667788" "\n" "Examples:" "\n" "j1939acd -r 100,80-120 -c /tmp/1122334455667788.jacd 1122334455667788" "\n" ; From 88ad7e57551216ae5865210237eec9bf13dddb39 Mon Sep 17 00:00:00 2001 From: josemic Date: Wed, 17 Jun 2020 11:06:32 +0200 Subject: [PATCH 2/2] j1939acd: add example showing optional interface parameter Changed j1939acd help examples by adding one example showing optional interface parameter. --- j1939acd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/j1939acd.c b/j1939acd.c index 73caaa1..0a0da7d 100644 --- a/j1939acd.c +++ b/j1939acd.c @@ -44,6 +44,7 @@ static const char help_msg[] = "\n" "Examples:" "\n" "j1939acd -r 100,80-120 -c /tmp/1122334455667788.jacd 1122334455667788" "\n" + "j1939acd -r 100,80-120 -c /tmp/1122334455667788.jacd 1122334455667788 vcan0" "\n" ; #ifdef _GNU_SOURCE