Skip to content

Commit

Permalink
rostopic bw: set default value of window_size arg to -1 instead of None
Browse files Browse the repository at this point in the history
  • Loading branch information
kartikmohta committed Aug 12, 2017
1 parent 7c2d32b commit 4c74df9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/rostopic/src/rostopic/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1528,7 +1528,7 @@ def _rostopic_cmd_bw(argv=sys.argv):
from optparse import OptionParser
parser = OptionParser(usage="usage: %prog bw /topic", prog=NAME)
parser.add_option("-w", "--window",
dest="window_size", default=None,
dest="window_size", default=-1,
help="window size, in # of messages, for calculating rate", metavar="WINDOW")
options, args = parser.parse_args(args)
if len(args) == 0:
Expand Down

0 comments on commit 4c74df9

Please sign in to comment.