Skip to content

Commit

Permalink
Output a warning while setting both '-t' and 'v' for info command
Browse files Browse the repository at this point in the history
Signed-off-by: Barry Xu <barry.xu@sony.com>
  • Loading branch information
Barry-Xu-2018 committed Nov 9, 2023
1 parent abdbc01 commit ab62249
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ros2bag/ros2bag/verb/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ def _is_service_event_topic(self, topic_name, topic_type) -> bool:
return True

def main(self, *, args): # noqa: D102
if args.topic_name and args.verbose:
print("Warning! You have set both the '-t' and '-v' parameters. The '-t' parameter "
'will be ignored.')
if args.verbose:
Info().read_metadata_and_output_service_verbose(args.bag_path, args.storage)
else:
Expand Down

0 comments on commit ab62249

Please sign in to comment.