msg: fix --bulk argument

This commit is contained in:
Quentin De Coninck 2017-02-23 12:21:04 +01:00
parent add9ad43c9
commit d81c5dff8d

View File

@ -15,7 +15,7 @@ to_join = []
parser = argparse.ArgumentParser(description="Msg client") parser = argparse.ArgumentParser(description="Msg client")
parser.add_argument("-s", "--sleep", type=float, help="sleep time between two sendings", default=5.0) parser.add_argument("-s", "--sleep", type=float, help="sleep time between two sendings", default=5.0)
parser.add_argument("-n", "--nb", type=int, help="number of requests done", default=5) parser.add_argument("-n", "--nb", type=int, help="number of requests done", default=5)
parser.add_argument("-B", "--bulk", type=bool, help="if set, don't wait for reply to send another packet", default=False) parser.add_argument("-B", "--bulk", help="if set, don't wait for reply to send another packet", action="store_true")
args = parser.parse_args() args = parser.parse_args()