mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Cleanup
This commit is contained in:
parent
dad6de7ee7
commit
8b8dd373a7
1 changed files with 23 additions and 23 deletions
|
|
@ -199,29 +199,29 @@ void options_parse(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
static struct option long_options[] =
|
static struct option long_options[] =
|
||||||
{
|
{
|
||||||
{"baudrate", required_argument, 0, 'b' },
|
{"baudrate", required_argument, 0, 'b' },
|
||||||
{"databits", required_argument, 0, 'd' },
|
{"databits", required_argument, 0, 'd' },
|
||||||
{"flow", required_argument, 0, 'f' },
|
{"flow", required_argument, 0, 'f' },
|
||||||
{"stopbits", required_argument, 0, 's' },
|
{"stopbits", required_argument, 0, 's' },
|
||||||
{"parity", required_argument, 0, 'p' },
|
{"parity", required_argument, 0, 'p' },
|
||||||
{"output-delay", required_argument, 0, 'o' },
|
{"output-delay", required_argument, 0, 'o' },
|
||||||
{"eol-delay", required_argument, 0, 'O' },
|
{"eol-delay", required_argument, 0, 'O' },
|
||||||
{"dtr-pulse-duration", required_argument, 0, OPT_DTR_PULSE_DURATION },
|
{"dtr-pulse-duration", required_argument, 0, OPT_DTR_PULSE_DURATION},
|
||||||
{"no-autoconnect", no_argument, 0, 'n' },
|
{"no-autoconnect", no_argument, 0, 'n' },
|
||||||
{"local-echo", no_argument, 0, 'e' },
|
{"local-echo", no_argument, 0, 'e' },
|
||||||
{"timestamp", no_argument, 0, 't' },
|
{"timestamp", no_argument, 0, 't' },
|
||||||
{"timestamp-format", required_argument, 0, OPT_TIMESTAMP_FORMAT },
|
{"timestamp-format", required_argument, 0, OPT_TIMESTAMP_FORMAT },
|
||||||
{"list-devices", no_argument, 0, 'L' },
|
{"list-devices", no_argument, 0, 'L' },
|
||||||
{"log", no_argument, 0, 'l' },
|
{"log", no_argument, 0, 'l' },
|
||||||
{"log-file", required_argument, 0, OPT_LOG_FILE },
|
{"log-file", required_argument, 0, OPT_LOG_FILE },
|
||||||
{"log-strip", no_argument, 0, OPT_LOG_STRIP },
|
{"log-strip", no_argument, 0, OPT_LOG_STRIP },
|
||||||
{"socket", required_argument, 0, 'S' },
|
{"socket", required_argument, 0, 'S' },
|
||||||
{"map", required_argument, 0, 'm' },
|
{"map", required_argument, 0, 'm' },
|
||||||
{"color", required_argument, 0, 'c' },
|
{"color", required_argument, 0, 'c' },
|
||||||
{"hexadecimal", no_argument, 0, 'x' },
|
{"hexadecimal", no_argument, 0, 'x' },
|
||||||
{"version", no_argument, 0, 'v' },
|
{"version", no_argument, 0, 'v' },
|
||||||
{"help", no_argument, 0, 'h' },
|
{"help", no_argument, 0, 'h' },
|
||||||
{0, 0, 0, 0 }
|
{0, 0, 0, 0 }
|
||||||
};
|
};
|
||||||
|
|
||||||
/* getopt_long stores the option index here */
|
/* getopt_long stores the option index here */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue