#compdef cu

_arguments -s -A '-*' \
  '-d[do not block waiting for a carrier to be detected]' \
  '-l[line to use]:line:(/dev/(cuaU#<->|ttyS<->)(N%c))' \
  '-s[line speed]:line speed:_baudrates' \
  '(-*)1:host:'
