[PATCH] Removed outdated rocket syntax for options
Export this patch
Closes: https://todo.sr.ht/~mun-tonsi/toki-sona/2
---
main.rb | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/main.rb b/main.rb
index 790f365..e52b564 100644
--- a/main.rb
+++ b/main.rb
@@ -13,10 +13,10 @@ Dotenv.load
# Read command line options
options = Optimist::options do
opt :email, "Send emails"
- opt :template, "Path to ERB template file", :type => :string, :required => true
- opt :calendars, "URIs where iCal files are located", :type => :strings, :required => true
- opt :output, "Redirect output to this file", :type => :string
- opt :offset, "Number of days from now to look for events, default is 7", :type => :integer
+ opt :template, "Path to ERB template file", type: :string, required: true
+ opt :calendars, "URIs where iCal files are located", type: :strings, required: true
+ opt :output, "Redirect output to this file", type: :string
+ opt :offset, "Number of days from now to look for events, default is 7", type: :integer
end
# Set up filters for events
--
2.45.1