lib/hasmenu.rb in hasmenu-0.1.5 vs lib/hasmenu.rb in hasmenu-0.1.6

- old
+ new

@@ -14,13 +14,13 @@ desc "--version, -v", "Print the version" def __print_version puts Hasmenu::VERSION end - desc "format <path>", "Format Has.Menu data" + desc "format <type> <path>", "Format Has.Menu data" option :location, aliases: :l, desc: "Path to data repository" - def format(path) - Hasmenu::Formatter.new(options).format(path) + def format(type, path) + Hasmenu::Formatter.new(type, options).format(path) end map "f" => :format desc "spellcheck <path>", "Run spellcheck on Has.Menu data" option :dicts, aliases: :d, desc: "Path to dictionary files"