Skip to content

Commit 1a0dcf2

Browse files
authored
ros2topic: Documented now and auto keywords (#1008)
Signed-off-by: Martin Pecka <[email protected]>
1 parent bfc5245 commit 1a0dcf2

File tree

1 file changed

+4
-1
lines changed
  • ros2topic/ros2topic/verb

1 file changed

+4
-1
lines changed

ros2topic/ros2topic/verb/pub.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ def add_arguments(self, parser, cli_name):
6464
'values', nargs='?', default='{}',
6565
help='Values to fill the message with in YAML format '
6666
"(e.g. 'data: Hello World'), "
67-
'otherwise the message will be published with default values')
67+
'otherwise the message will be published with default values. '
68+
"You can use 'now' placeholder to get the current time and "
69+
"'auto' placeholder to get a std_msgs.msg.Header with current "
70+
'time and empty frame_id.')
6871
arg.completer = TopicMessagePrototypeCompleter(
6972
topic_type_key='message_type')
7073
group.add_argument(

0 commit comments

Comments
 (0)