Clarify options and warn about overwriting #791
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This might help new users select the desired operation, and make it known that some operations are potentially dangerous.
[identifier]verbage to[schedule]Today I was exploring this gem for the first time and the existing help page led me to think that
-wwas the correct option to start with. I ended up overwriting my existing crontab, which was quite unexpected.I thought it would be helpful to clarify some points in the help banner.
Current banner:
Banner after this change:
I'm still a little confused about why there seems to be options for
-fand[identifier]which seem to result in similar concepts. If this can be clarified, I think it would also be helpful. I feel that the correct way to specify an alternative schedule should bewhenever -i -f 'myschedule.rb'. It would reduce the confusion and complexity of the-iwcoptions.Is there anything I've misunderstood about Whenever while making this edit? Any other additions to consider?
Edit: Updated correct "current banner". Sorry, I had one of my previous attempts at cleaning up the banner as the example current banner.