diff --git a/README.md b/README.md index 23c891a..fdeacde 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ embedded developers and hackers. The command-line interface is straightforward as reflected in the output from 'tio --help': ``` - Usage: tio [] + Usage: tio [] Options: -b, --baudrate Baud rate (default: 115200) @@ -45,9 +45,11 @@ The command-line interface is straightforward as reflected in the output from -v, --version Display version -h, --help Display help - See the man page for more details. + Options may be set via configuration file. In session, press ctrl-t q to quit. + + See the man page for more details. ``` The only option which requires a bit of elaboration is perhaps the diff --git a/man/tio.1.in b/man/tio.1.in index f114af0..f129dc6 100644 --- a/man/tio.1.in +++ b/man/tio.1.in @@ -6,7 +6,7 @@ tio \- a simple serial terminal I/O tool .SH "SYNOPSIS" .PP .B tio -.RI "[" "] " "" +.RI "[" "] " "" .SH "DESCRIPTION" .PP diff --git a/src/options.c b/src/options.c index 5259c14..f0b88f3 100644 --- a/src/options.c +++ b/src/options.c @@ -58,7 +58,7 @@ struct option_t option = void print_help(char *argv[]) { - printf("Usage: %s [] \n", argv[0]); + printf("Usage: %s [] \n", argv[0]); printf("\n"); printf("Options:\n"); printf(" -b, --baudrate Baud rate (default: 115200)\n"); @@ -78,10 +78,13 @@ void print_help(char *argv[]) printf(" -v, --version Display version\n"); printf(" -h, --help Display help\n"); printf("\n"); - printf("See the man page for more details.\n"); + printf("Options may be set via configuration file.\n"); printf("\n"); printf("In session, press ctrl-t q to quit.\n"); printf("\n"); + printf("See the man page for more details.\n"); + printf("\n"); + } const char* timestamp_token(enum timestamp_t timestamp)