-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
Doesn't support configurable intervals (and other watch options). #4
Comments
What about |
I'd recommend using |
I just found this, and I'm interested in the same thing. I could submit a PR for this if you like? |
Okay 👌 |
I'll submit a PR to introduce optional flags, and include the interval flag. That should at least be enough to then get started on adding other flags |
Looking at the code, this implementation of
watch
only has an interval of 1 second. For commands that are heavy on resources, that's too frequent.In normal (gnu?) watch you can set an interval and other options :
It would be good to have those implemented. Also, amusingly
watch --help
in this implementation tries to watch a command--help
. The experienced unix admin knows that to pass arguments to apps they have to push a--
separator, sowatch -c -n30 -- ls -c
but if you do this, be sure to document :-)The text was updated successfully, but these errors were encountered: