Conversation
a95b7a8 to
e6c58d2
Compare
|
I would additionally suggest, that the monitor flag has an optional parameter, which defines how many seconds, defaulting to 2. |
Got any recommendations for the name of that option? |
I think the way you have done it (only long option arguement is quite good). --monitor or maybe --follow is both fine. For parsing the number you can take a look how --timeout is parsed. You might want to specify the modifier optional_argument in the opts[] array. And check if a argument is given otherwise default to 2 |
e6c58d2 to
d56555d
Compare
Repeat the commands requested after sleeping the request amount of seconds, or 2 seconds by default. This can be useful to monitor a battery status.
d56555d to
dcd2d2d
Compare
* Add a follow mode Repeat the commands requested after sleeping the request amount of seconds, or 2 seconds by default. This can be useful to monitor a battery status.
Repeat the commands requested after sleeping 2 seconds. This can be
useful to monitor a battery status.