Match user input against config section names if pattern matching was unsuccessful.

This allows for better config file ergonomics if the user has a diverse
set of serial devices as the name does not need to be specified in
the config file twice.
This commit is contained in:
Peter Collingbourne 2022-04-20 15:25:55 -07:00
parent b882827b97
commit a81c43a01a
2 changed files with 35 additions and 6 deletions

View file

@ -182,6 +182,9 @@ Sections can be used to group settings and their names are only used for readabi
.TP
tio will try to match the user input to a section pattern to get the tty and other options.
.TP
If pattern matching fails, tio will try to match the user input to a section name.
.TP
Options without any section name sets the default options.