mirror of
https://github.com/linux-can/can-utils.git
synced 2026-08-05 14:29:54 +02:00
slcanpty: simplify tool decription in help text
Simplify tool description and format the empty lines like in other (e.g. slcand) tools. Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
This commit is contained in:
+6
-3
@@ -1,5 +1,7 @@
|
|||||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
/*
|
/*
|
||||||
|
* slcanpty: adapter for applications using the slcan ASCII protocol
|
||||||
|
*
|
||||||
* slcanpty.c - creates a pty for applications using the slcan ASCII protocol
|
* slcanpty.c - creates a pty for applications using the slcan ASCII protocol
|
||||||
* and converts the ASCII data to a CAN network interface (and vice versa)
|
* and converts the ASCII data to a CAN network interface (and vice versa)
|
||||||
*
|
*
|
||||||
@@ -428,13 +430,14 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
/* check command line options */
|
/* check command line options */
|
||||||
if (argc != 3) {
|
if (argc != 3) {
|
||||||
fprintf(stderr, "\n");
|
fprintf(stderr, "%s: adapter for applications using"
|
||||||
fprintf(stderr, "%s creates a pty for applications using"
|
" the slcan ASCII protocol.\n", basename(argv[0]));
|
||||||
|
fprintf(stderr, "\n%s creates a pty for applications using"
|
||||||
" the slcan ASCII protocol and\n", basename(argv[0]));
|
" the slcan ASCII protocol and\n", basename(argv[0]));
|
||||||
fprintf(stderr, "converts the ASCII data to a CAN network"
|
fprintf(stderr, "converts the ASCII data to a CAN network"
|
||||||
" interface (and vice versa)\n\n");
|
" interface (and vice versa)\n\n");
|
||||||
fprintf(stderr, "Usage: %s <pty> <can interface>\n", basename(argv[0]));
|
fprintf(stderr, "Usage: %s <pty> <can interface>\n", basename(argv[0]));
|
||||||
fprintf(stderr, "Examples:\n");
|
fprintf(stderr, "\nExamples:\n");
|
||||||
fprintf(stderr, "%s /dev/ptyc0 can0 - creates /dev/ttyc0 for the slcan application\n\n",
|
fprintf(stderr, "%s /dev/ptyc0 can0 - creates /dev/ttyc0 for the slcan application\n\n",
|
||||||
basename(argv[0]));
|
basename(argv[0]));
|
||||||
fprintf(stderr, "e.g. for pseudo-terminal '%s %s can0' creates"
|
fprintf(stderr, "e.g. for pseudo-terminal '%s %s can0' creates"
|
||||||
|
|||||||
Reference in New Issue
Block a user