Skip to content

Correct app_name argument #1151

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 27, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions can/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def _create_base_argument_parser(parser: argparse.ArgumentParser) -> None:
)

parser.add_argument(
"app_name",
"--app_name",
help="""App name can be necessary in the initializer. For example with Vector.""",
)

Expand Down Expand Up @@ -102,7 +102,7 @@ def _create_bus(parsed_args: Any, **kwargs: Any) -> can.Bus:
config["fd"] = True
if parsed_args.data_bitrate:
config["data_bitrate"] = parsed_args.data_bitrate
if parse_args.app_name:
if parsed_args.app_name:
config["app_name"] = parsed_args.app_name

return Bus(parsed_args.channel, **config) # type: ignore
Expand Down