mirror of
https://github.com/tio/tio.git
synced 2026-05-01 23:07:58 +02:00
add support for a configuration file
Signed-off-by: Liam Beguin <liambeguin@gmail.com>
This commit is contained in:
parent
2795ef6c79
commit
2e5c1ff20c
6 changed files with 274 additions and 1 deletions
|
|
@ -269,7 +269,9 @@ void parse_options(int argc, char *argv[])
|
|||
}
|
||||
|
||||
/* Assume first non-option is the tty device name */
|
||||
if (optind < argc)
|
||||
if (strcmp(option.tty_device, ""))
|
||||
optind++;
|
||||
else if (optind < argc)
|
||||
option.tty_device = argv[optind++];
|
||||
|
||||
if (strlen(option.tty_device) == 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue