diff --git a/saleae_cli.py b/saleae_cli.py index 471c1cd..27b971a 100644 --- a/saleae_cli.py +++ b/saleae_cli.py @@ -16,7 +16,7 @@ def validate_path( path, argument_name ): parser.add_argument('--export-data', metavar='PATH', help='if specified, exports the raw capture to the sepcified directory') parser.add_argument('--export-analyzers', metavar='PATH', help='if specified, exports each analyzer to the specified directory') parser.add_argument('--ip', metavar='IP', default='localhost', help='optional, IP address to connect to. Default localhost') -parser.add_argument('--port', metavar='PORT', default=10429, help='optional, Port to connect to. Default 10429') +parser.add_argument('--port', metavar='PORT', default=10429, type=int, help='optional, Port to connect to. Default 10429') parser.add_argument('--exit', action='store_true', help='optional, use to close the Logic software once complete') args = parser.parse_args()