我正在为 grunt 编写一个新插件,它使用一些问题来解决一些翻译问题。我使用 编写插件grunt.registerMultiTask();
并且我使用 grunt translate
. 但是在代码的某些部分,我有解决翻译迁移问题的提示。
代码是:
grunt.helper('prompt', {}, [
// Prompt for these values.
grunt.helper('prompt_for', 'name')
], function(err, props) {
// All done!
done();
});
我想知道为什么它无视命令行中的提示。它只是输出问题而不等待答案。