class B12 < Thor
desc "write", "write data into the index"
method_option :methods, :desc => "The methods to call on each RawData", :type => :array
def write(methods)
end
end
当我通过调用文件时
thor b12:write --methods=foo
我明白了
"write" was called incorrectly. Call as "thor b12:write".
问题出在哪里?