lib/waddup/cli.rb in waddup-0.2.0 vs lib/waddup/cli.rb in waddup-0.2.1
- old
+ new
@@ -53,9 +53,11 @@
command :timesheet do |c|
c.syntax = 'waddup with git and mail since last monday 9:00 until yesterday morning'
c.description = 'Aggregates events and generates timesheet between from and to range'
c.option '--format visual | json', String, 'Provides timesheet in specified format'
c.action do |args, options|
+ options.default format: 'visual'
+
parse! args
# Sanity checking
@sources ||= Waddup::Source.usable
@from ||= Time.now