mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Rename option -i to -L
This commit is contained in:
parent
353ce69130
commit
bb300293cc
3 changed files with 6 additions and 6 deletions
|
|
@ -29,7 +29,7 @@ The command-line interface is straightforward as reflected in the output from
|
|||
-n, --no-autoconnect Disable automatic connect
|
||||
-e, --local-echo Do local echo
|
||||
-t, --timestamp Timestamp lines
|
||||
-i, --list-devices List available serial devices
|
||||
-L, --list-devices List available serial devices
|
||||
-l, --log <filename> Log to file
|
||||
-m, --map <flags> Map special characters
|
||||
-v, --version Display version
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ Enable local echo.
|
|||
Timestamp lines.
|
||||
|
||||
.TP
|
||||
.BR \-i ", " \-\-list\-devices
|
||||
.BR \-L ", " \-\-list\-devices
|
||||
|
||||
List available serial devices.
|
||||
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ void print_help(char *argv[])
|
|||
printf(" -n, --no-autoconnect Disable automatic connect\n");
|
||||
printf(" -e, --local-echo Do local echo\n");
|
||||
printf(" -t, --timestamp Timestamp lines\n");
|
||||
printf(" -i, --list-devices List available serial devices\n");
|
||||
printf(" -L, --list-devices List available serial devices\n");
|
||||
printf(" -l, --log <filename> Log to file\n");
|
||||
printf(" -m, --map <flags> Map special characters\n");
|
||||
printf(" -v, --version Display version\n");
|
||||
|
|
@ -117,7 +117,7 @@ void parse_options(int argc, char *argv[])
|
|||
{"no-autoconnect", no_argument, 0, 'n'},
|
||||
{"local-echo", no_argument, 0, 'e'},
|
||||
{"timestamp", no_argument, 0, 't'},
|
||||
{"list-devices", no_argument, 0, 'i'},
|
||||
{"list-devices", no_argument, 0, 'L'},
|
||||
{"log", required_argument, 0, 'l'},
|
||||
{"map", required_argument, 0, 'm'},
|
||||
{"version", no_argument, 0, 'v'},
|
||||
|
|
@ -129,7 +129,7 @@ void parse_options(int argc, char *argv[])
|
|||
int option_index = 0;
|
||||
|
||||
/* Parse argument using getopt_long */
|
||||
c = getopt_long(argc, argv, "b:d:f:s:p:o:netil:m:vh", long_options, &option_index);
|
||||
c = getopt_long(argc, argv, "b:d:f:s:p:o:netLl:m:vh", long_options, &option_index);
|
||||
|
||||
/* Detect the end of the options */
|
||||
if (c == -1)
|
||||
|
|
@ -183,7 +183,7 @@ void parse_options(int argc, char *argv[])
|
|||
option.timestamp = true;
|
||||
break;
|
||||
|
||||
case 'i':
|
||||
case 'L':
|
||||
option.list_devices = true;
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue