newsapps/beeswithmachineguns

Cannot seem to use --keepalive option

misalcedo opened this issue · 0 comments

attack_group.add_option('-K', '--keepalive', metavar="KEEP_ALIVE", nargs=0,

The nargs option is 0, so my assumption is the argument will never have a value and so will never pass "-k" option to Apache Bench.

I tried:
"bees attack -K True"
"bees attack --keepalive=True"
"bees attack -K KEEP_ALIVE"
"bees attack --keepalive=KEEP_ALIVE"
"bees attack -K"
"bees attack --keepalive"

None of them added -k to Apache Bench