$ tior --help
Connect to serial port
Usage: tior [OPTIONS] <COMMAND>
Commands:
open Open TTY
list List available devices
help Print this message or the help of the given subcommand(s)
Options:
-b, --baud-rate <BAUD_RATE> Line baud rate [default: 115200]
-d, --data-bits <DATA_BITS> Line data bits [default: 8]
-f, --flow-control <FLOW_CONTROL> Flow control [default: none] [possible values: none, software, hardware]
-p, --parity <PARITY> Parity [default: none] [possible values: none, odd, even]
-h, --help Print help
-V, --version Print version
$ tior list
/dev/ttyUSB0
/dev/ttyS0
$ tior open /dev/ttyUSB0
Should also implement polling of the device until it becomes available later on.