diff --git a/can/logger.py b/can/logger.py index 3594427e6..5aff5e4e1 100644 --- a/can/logger.py +++ b/can/logger.py @@ -43,7 +43,7 @@ def _create_base_argument_parser(parser: argparse.ArgumentParser) -> None: dest="interface", help="""Specify the backend CAN interface to use. If left blank, fall back to reading from configuration files.""", - choices=can.VALID_INTERFACES, + choices=sorted(can.VALID_INTERFACES), ) parser.add_argument(