Skip to content

Commit

Permalink
CLI - play verb metavar (#1906)
Browse files Browse the repository at this point in the history
better show `--clock [Hz]` than `--clock [CLOCK]`

Signed-off-by: Patrick Roncagliolo <[email protected]>
  • Loading branch information
roncapat authored Feb 17, 2025
1 parent 871a447 commit 323ebbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ros2bag/ros2bag/verb/play.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def add_arguments(self, parser, cli_name): # noqa: D102
'See storage plugin documentation for the format of this file.')
clock_args_group = parser.add_mutually_exclusive_group()
clock_args_group.add_argument(
'--clock', type=positive_float, nargs='?', const=40, default=0,
'--clock', type=positive_float, metavar='Hz', nargs='?', const=40, default=0,
help='Publish to /clock at a specific frequency in Hz, to act as a ROS Time Source. '
'Value must be positive. Defaults to not publishing.'
'If specified, /clock topic in the bag file is excluded to publish.')
Expand Down

0 comments on commit 323ebbf

Please sign in to comment.