-
-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a monitor mode #230
Add a monitor mode #230
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.