We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52703d7 commit 0435e17Copy full SHA for 0435e17
can/bridge.py
@@ -32,6 +32,8 @@
32
Example usage:
33
can_bridge -i socketcan -c can0 -- -i socketcan can1
34
can_bridge -vvv -- -i socketcan -c can0 -- -i socketcan can1
35
+
36
+Type `can_bridge help_bus` for information about single bus configuration.
37
"""
38
39
LOG = logging.getLogger(__name__)
@@ -106,8 +108,11 @@ def main() -> None:
106
108
try:
107
109
general, conf_a, conf_b = split_configurations(args)
110
except UserError as exc:
- print(f"Error while processing arguments: {exc}",
- file=sys.stderr)
111
+ if len(args) == 1 and args[0] == 'help_bus':
112
+ bus_parser.print_help(sys.stderr)
113
+ else:
114
+ print(f"Error while processing arguments: {exc}",
115
+ file=sys.stderr)
116
raise SystemExit(errno.EINVAL)
117
118
LOG.debug("General configuration: %s", general)
0 commit comments