Added unit for baudrate

This commit is contained in:
Martin Lund 2015-04-18 11:44:21 +03:00
parent 4eaff1df9d
commit edeb79b02c
3 changed files with 4 additions and 4 deletions

2
README
View file

@ -22,7 +22,7 @@
Usage: gotty [<options>] <tty device> Usage: gotty [<options>] <tty device>
Options: Options:
-b, --baudrate <baudrate> Baud rate (default: 115200) -b, --baudrate <bps> Baud rate (default: 115200)
-d, --databits 5|6|7|8 Data bits (default: 8) -d, --databits 5|6|7|8 Data bits (default: 8)
-f, --flow hard|soft|none Flow control (default: none) -f, --flow hard|soft|none Flow control (default: none)
-s, --stopbits 1|2 Stop bits (default: 1) -s, --stopbits 1|2 Stop bits (default: 1)

View file

@ -19,9 +19,9 @@ interface to easily connect to TTY devices for basic input/output.
.SH "OPTIONS" .SH "OPTIONS"
.TP .TP
.B \-b, \--baudrate <baudrate> .B \-b, \--baudrate <bps>
Set baud rate (default: 115200). Set baud rate [bps] (default: 115200).
.TP .TP
.B \-d, \--databits 5|6|7|8 .B \-d, \--databits 5|6|7|8

View file

@ -42,7 +42,7 @@ void print_options_help(char *argv[])
printf("Usage: %s [<options>] <tty device>\n", argv[0]); printf("Usage: %s [<options>] <tty device>\n", argv[0]);
printf("\n"); printf("\n");
printf("Options:\n"); printf("Options:\n");
printf(" -b, --baudrate <baudrate> Baud rate (default: 115200)\n"); printf(" -b, --baudrate <bps> Baud rate (default: 115200)\n");
printf(" -d, --databits 5|6|7|8 Data bits (default: 8)\n"); printf(" -d, --databits 5|6|7|8 Data bits (default: 8)\n");
printf(" -f, --flow hard|soft|none Flow control (default: none)\n"); printf(" -f, --flow hard|soft|none Flow control (default: none)\n");
printf(" -s, --stopbits 1|2 Stop bits (default: 1)\n"); printf(" -s, --stopbits 1|2 Stop bits (default: 1)\n");