Skip to content

Add public functions for creating bus command lines options#1949

Merged
zariiii9003 merged 1 commit intohardbyte:mainfrom
zariiii9003:cli-api
Jun 6, 2025
Merged

Add public functions for creating bus command lines options#1949
zariiii9003 merged 1 commit intohardbyte:mainfrom
zariiii9003:cli-api

Conversation

@zariiii9003
Copy link
Collaborator

Currently downstream packages need their own logic to configure python-can buses. With add_bus_arguments() they can just add our options to their argparse.ArgumentParser.

This also enables setup of multiple bus instances from command line via prefixes (may be helpful for #1923).

@zariiii9003 zariiii9003 merged commit 3b75c33 into hardbyte:main Jun 6, 2025
62 of 84 checks passed
@zariiii9003 zariiii9003 deleted the cli-api branch June 6, 2025 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant