@@ -8,15 +8,21 @@ options = {}
8
8
9
9
OptionParser . new do |opts |
10
10
opts . banner = "Usage: whenever [options]"
11
- opts . on ( '-i' , '--update-crontab [identifier]' , 'Default: full path to schedule.rb file' ) do |identifier |
11
+ opts . on ( '-i' , '--update-crontab [schedule]' ,
12
+ 'Install the schedule to crontab.' ,
13
+ ' Default: full path to schedule.rb file' ) do |identifier |
12
14
options [ :update ] = true
13
15
options [ :identifier ] = identifier if identifier
14
16
end
15
- opts . on ( '-w' , '--write-crontab [identifier]' , 'Default: full path to schedule.rb file' ) do |identifier |
17
+ opts . on ( '-w' , '--write-crontab [schedule]' ,
18
+ 'Clear current crontab, and overwrite it with only the given schedule.' ,
19
+ ' Default: full path to schedule.rb file' ) do |identifier |
16
20
options [ :write ] = true
17
21
options [ :identifier ] = identifier if identifier
18
22
end
19
- opts . on ( '-c' , '--clear-crontab [identifier]' ) do |identifier |
23
+ opts . on ( '-c' , '--clear-crontab [schedule]' ,
24
+ 'Uninstall the schedule from crontab.' ,
25
+ ' Default: full path to schedule.rb file' ) do |identifier |
20
26
options [ :clear ] = true
21
27
options [ :identifier ] = identifier if identifier
22
28
end
0 commit comments