Skip to content

specify argparse port argument as int - #6

Open
drewbell wants to merge 1 commit into
saleae:masterfrom
drewbell:fix/port-data-type
Open

specify argparse port argument as int#6
drewbell wants to merge 1 commit into
saleae:masterfrom
drewbell:fix/port-data-type

Conversation

@drewbell

Copy link
Copy Markdown

background: the constructor of the Saleae class requires that the port
argument being provided is an integer, otherwise the construction fails
and crashes the program. By default, argparse parses arguments as
strings, so previously specifying a port via the CLI would crash the
program. Specifying the port argument as an int in add_argument() solves
this problem.

background: the constructor of the Saleae class requires that the port
argument being provided is an integer, otherwise the construction fails
and crashes the program. By default, argparse parses arguments as
strings, so previously specifying a port via the CLI would crash the
program. Specifying the port argument as an int in add_argument() solves
this problem.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant