rostopic: fixed usage for dual-mode info/list
This commit is contained in:
parent
8ac8d2f6e1
commit
32639bdf2d
|
@ -1166,7 +1166,7 @@ def _rostopic_cmd_list(command):
|
|||
@type command: str
|
||||
"""
|
||||
args = sys.argv[2:]
|
||||
parser = OptionParser(usage="usage: %prog list [/namespace]", prog=NAME)
|
||||
parser = OptionParser(usage="usage: %%prog %s [/namespace]"%command, prog=NAME)
|
||||
parser.add_option("-b", "--bag",
|
||||
dest="bag", default=None,
|
||||
help="list topics in .bag file", metavar="BAGFILE")
|
||||
|
|
Loading…
Reference in New Issue