Skip to content

Commit 7b1893d

Browse files
authored
Sort interface names, to make documentation reproducible (#1342)
1 parent 5bca2d7 commit 7b1893d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

can/logger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def _create_base_argument_parser(parser: argparse.ArgumentParser) -> None:
4343
dest="interface",
4444
help="""Specify the backend CAN interface to use. If left blank,
4545
fall back to reading from configuration files.""",
46-
choices=can.VALID_INTERFACES,
46+
choices=sorted(can.VALID_INTERFACES),
4747
)
4848

4949
parser.add_argument(

0 commit comments

Comments
 (0)