rostopic: fixed usage for dual-mode info/list

This commit is contained in:
Ken Conley 2009-12-03 02:02:46 +00:00
parent 8ac8d2f6e1
commit 32639bdf2d
1 changed files with 1 additions and 1 deletions

View File

@ -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")