Skip to content

Add error message for port (-p port_name) that is not in filtered port list (-P) #32

Closed
@PropGit

Description

@PropGit

Add error response when port requested (via ... -p <port_name>) that is not in the supported/filtered list (retrieved via ... -P).

For example, on a Mac, if the command-line is this:
proploader -p /dev/tty.usbserial-AH016W5L my_application
response could be, a fatal error... the port is not opened and the following message is emitted:
Error: can not open port /dev/tty.usbserial-AH016W5L

This need was brought up in Issue #31 because the user was specifying a dev/tty.* port on a Mac instead of a dev/cu.* port, causing intermittent failures. The -P option response only includes the dev/cu.* ports and not the dev/tty.* ports.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions