lib/topicz/commands/report_command.rb in topicz-0.2.0 vs lib/topicz/commands/report_command.rb in topicz-0.3.0
- old
+ new
@@ -1,18 +1,16 @@
require_relative 'repository_command'
-require 'json'
module Topicz::Commands
class ReportCommand < RepositoryCommand
def initialize(config_file = nil, arguments = [])
super(config_file)
@week = Date.today.cweek
@year = Date.today.cwyear
option_parser.order! arguments
- @filter = arguments.join ' '
end
def option_parser
OptionParser.new do |options|
options.banner = 'Usage: report'
@@ -21,10 +19,10 @@
end
options.on('-y', '--year YEAR', 'Use year YEAR instead of the current year') do |year|
@year = year.to_i
end
options.separator ''
- options.separator 'Generates a weekly report from all journals across all topics.'
+ options.separator 'Generates a weekly report from all journals across all topics in a single Markdown file.'
end
end
def execute
year = @year.to_s